diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-29 20:30:08 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-30 12:12:00 +0200 |
commit | 1c3f490f230c1dad83901b1768456082159f2cbe (patch) | |
tree | 0a1554e98d09f1aaa8ec1488ccbc035bb471cca4 /test/test-network-generator-conversion.sh | |
parent | test: drop an unused file (diff) | |
download | systemd-1c3f490f230c1dad83901b1768456082159f2cbe.tar.xz systemd-1c3f490f230c1dad83901b1768456082159f2cbe.zip |
test: shellcheck-ify test scripts
Diffstat (limited to 'test/test-network-generator-conversion.sh')
-rwxr-xr-x | test/test-network-generator-conversion.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 |