summaryrefslogtreecommitdiffstats
path: root/test/test-network-generator-conversion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-network-generator-conversion.sh')
-rwxr-xr-xtest/test-network-generator-conversion.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh
index 9a4732c..12254ac 100755
--- a/test/test-network-generator-conversion.sh
+++ b/test/test-network-generator-conversion.sh
@@ -49,15 +49,15 @@ run_network_generator() {
rm -rf "${WORK_DIR:?}"/*
stderr="$WORK_DIR/stderr"
- if ! "$GENERATOR_BIN" --root "$WORK_DIR" 2>"$stderr"; then
+ if ! SYSTEMD_LOG_LEVEL="info" "$GENERATOR_BIN" --root "$WORK_DIR" 2>"$stderr"; then
echo >&2 "Generator failed when parsing $SYSTEMD_PROC_CMDLINE"
- cat "$stderr"
+ cat >&2 "$stderr"
return 1
fi
if [[ -s "$stderr" ]]; then
echo >&2 "Generator generated unexpected messages on stderr"
- cat "$stderr"
+ cat >&2 "$stderr"
return 1
fi
@@ -226,7 +226,7 @@ for f in "$TEST_DATA"/test-*.input; do
"$GENERATOR_BIN" --root "$out" -- $(cat "$f")
if ! diff -u "$out/run/systemd/network" "${f%.input}.expected"; then
- echo "**** Unexpected output for $f"
+ echo >&2 "**** Unexpected output for $f"
exit 1
fi