From 1c3f490f230c1dad83901b1768456082159f2cbe Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 29 Sep 2021 20:30:08 +0200 Subject: test: shellcheck-ify test scripts --- test/test-network-generator-conversion.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/test-network-generator-conversion.sh') diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh index 50df69f1b0..da7f985dee 100755 --- a/test/test-network-generator-conversion.sh +++ b/test/test-network-generator-conversion.sh @@ -18,11 +18,13 @@ for f in "$src"/test-*.input; do ( out=$(mktemp --tmpdir --directory "test-network-generator-conversion.XXXXXXXXXX") + # shellcheck disable=SC2064 trap "rm -rf '$out'" EXIT INT QUIT PIPE - $generator --root "$out" -- $(cat $f) + # shellcheck disable=SC2046 + $generator --root "$out" -- $(cat "$f") - if ! diff -u "$out"/run/systemd/network ${f%.input}.expected; then + if ! diff -u "$out/run/systemd/network" "${f%.input}.expected"; then echo "**** Unexpected output for $f" exit 1 fi -- cgit v1.2.3