diff options
| author | Eric Biggers <ebiggers@google.com> | 2021-07-16 17:59:26 -0500 |
|---|---|---|
| committer | Eric Biggers <ebiggers3@gmail.com> | 2021-07-16 18:53:11 -0500 |
| commit | 6e38153e0d471ec1fe50fca31c9bb3e847eca8cc (patch) | |
| tree | 7a780d359a571ccdec44d3ee149e6d7de5c51703 /cli-tests | |
| parent | a3b365be9878b14fd36cc310d3c8b1fdccfdcb04 (diff) | |
cli-tests: fix failure with latest bash version
Diffstat (limited to 'cli-tests')
| -rwxr-xr-x | cli-tests/run.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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" } |