tests: monitor: Hide temporary file names from error output
Phil Sutter
reviewerPATCH 1/1 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 <[email protected]>
--- tests/monitor/run-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/monitor/run-tests.sh +2 -2
@@ -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 }
Signature · 1 line
2.34.1