From 198b02f7dd61c6cb9fd4c379dc56edcf537a7ee1 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 31 Dec 2013 23:22:36 +0100 Subject: fix failures found by randomconfig builds Signed-off-by: Denys Vlasenko --- testsuite/tar.tests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuite/tar.tests') 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 " \ -- cgit v1.2.3