diff options
Diffstat (limited to 'regressions')
-rwxr-xr-x | regressions/test-guestfish-escapes.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/regressions/test-guestfish-escapes.sh b/regressions/test-guestfish-escapes.sh index 6f4f4341..3ba37d2f 100755 --- a/regressions/test-guestfish-escapes.sh +++ b/regressions/test-guestfish-escapes.sh @@ -20,7 +20,7 @@ set -e -rm -f test.output test.error +rm -f test.output test.error test.error.old ../fish/guestfish <<'EOF' 2>test.error | od > test.output echo "" @@ -47,6 +47,11 @@ echo "\100" -echo """ EOF +# Since trace and debug output also goes to stderr, we must +# remove it before testing. +mv test.error test.error.old +grep -v '^libguestfs: ' < test.error.old > test.error + if [ "$(cat test.error)" != "\ guestfish: invalid escape sequence in string (starting at offset 0) guestfish: invalid escape sequence in string (starting at offset 0) @@ -75,4 +80,4 @@ if [ "$(cat test.output)" != "\ exit 1 fi -rm -f test.output test.error +rm -f test.output test.error test.error.old |