From 6e38153e0d471ec1fe50fca31c9bb3e847eca8cc Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 16 Jul 2021 17:59:26 -0500 Subject: cli-tests: fix failure with latest bash version --- cli-tests/run.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli-tests/run.sh') diff --git a/cli-tests/run.sh b/cli-tests/run.sh index 909b645..dc17b5b 100755 --- a/cli-tests/run.sh +++ b/cli-tests/run.sh @@ -108,6 +108,10 @@ filter_test_output() # Filter any other paths in TMPDIR. sedscript+="s@$TMPDIR@TMPDIR@g;" + # At some point, 'bash -c COMMAND' started showing error messages as + # "bash: line 1: " instead of just "bash: ". Filter out the "line 1: ". + sedscript+="s@^bash: line 1: @bash: @;" + sed -e "$sedscript" "$raw_output" } -- cgit v1.2.3