aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tar.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tar.tests')
-rwxr-xr-xtestsuite/tar.tests6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests
index 93ba5f004..9ea89f15f 100755
--- a/testsuite/tar.tests
+++ b/testsuite/tar.tests
@@ -25,10 +25,12 @@ tar: short read
SKIP=
optional FEATURE_SEAMLESS_GZ
+# In NOMMU case, "invalid magic" message comes from gunzip child process.
+# Otherwise, it comes from tar.
+# Need to fix output up to avoid false positive.
testing "Empty file is not a tarball.tar.gz" '\
-tar xvzf - 2>&1; echo $?
+{ tar xvzf - 2>&1; echo $?; } | grep -Fv "invalid magic"
' "\
-tar: invalid magic
tar: short read
1
" \