summaryrefslogtreecommitdiffstats
path: root/test/test-network-generator-conversion.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-09-29 20:30:08 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-09-30 12:12:00 +0200
commit1c3f490f230c1dad83901b1768456082159f2cbe (patch)
tree0a1554e98d09f1aaa8ec1488ccbc035bb471cca4 /test/test-network-generator-conversion.sh
parenttest: drop an unused file (diff)
downloadsystemd-1c3f490f230c1dad83901b1768456082159f2cbe.tar.xz
systemd-1c3f490f230c1dad83901b1768456082159f2cbe.zip
test: shellcheck-ify test scripts
Diffstat (limited to 'test/test-network-generator-conversion.sh')
-rwxr-xr-xtest/test-network-generator-conversion.sh6
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