diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-21 06:21:12 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2024-02-11 20:55:47 +0100 |
commit | 78643f26a2e6e74af80ec35e8dea9ec4742e686e (patch) | |
tree | e810c00bff3a2b98d95feefae7cc0494ed790c44 /test/test-network-generator-conversion.sh | |
parent | repart: fix typo (diff) | |
download | systemd-78643f26a2e6e74af80ec35e8dea9ec4742e686e.tar.xz systemd-78643f26a2e6e74af80ec35e8dea9ec4742e686e.zip |
test: show error messages to stderr
Otherwise, 'meson test' hides the messages on failure.
Diffstat (limited to 'test/test-network-generator-conversion.sh')
-rwxr-xr-x | test/test-network-generator-conversion.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh index 9a4732c981..0a5fa4d22e 100755 --- a/test/test-network-generator-conversion.sh +++ b/test/test-network-generator-conversion.sh @@ -51,13 +51,13 @@ run_network_generator() { stderr="$WORK_DIR/stderr" if ! "$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 |