From f561a0ccb0524eded2f2b9160b5c97bc569cc5e4 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 6 Apr 2022 15:41:03 +0200 Subject: tests: monitor: Hide temporary file names from error output Make error output deterministic by passing input to nft via stdin. This way error messages will contain "/dev/stdin" instead of the temporary file name. Signed-off-by: Phil Sutter --- tests/monitor/run-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/monitor') diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index ff00450b..b5ca47d9 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -74,7 +74,7 @@ monitor_run_test() { echo "command file:" cat $command_file } - $nft -f $command_file || { + $nft -f - <$command_file || { err "nft command failed!" rc=1 } @@ -103,7 +103,7 @@ echo_run_test() { echo "command file:" cat $command_file } - $nft -nn -e -f $command_file >$echo_output || { + $nft -nn -e -f - <$command_file >$echo_output || { err "nft command failed!" rc=1 } -- cgit v1.2.3