From 80d80ba6dd9e91cca471ce767c8032a0f0db4244 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 11 Sep 2010 00:28:50 -0700 Subject: Fixed a couple of failing tar tests The tar symlinks mode test is fixed similarly to the hardlinks test in 0d7cb4cc, and the read-only test is skipped by SKIP_KNOWN_BUGS. Signed-off-by: Dan Fandrich Signed-off-by: Denys Vlasenko --- testsuite/tar.tests | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testsuite') diff --git a/testsuite/tar.tests b/testsuite/tar.tests index dd502c2..f2f4e93 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests @@ -91,15 +91,14 @@ mkdir input_dir ln input_file input_dir ln input_soft input_dir chmod 550 input_dir -tar cf test.tar input_* +tar cf test.tar input_dir/* input_[fs]* tar tvf test.tar | sed "s/.*[0-9] input/input/" | sort chmod 770 input_dir rm -rf input_* tar xf test.tar 2>&1 echo Ok: $? -ls -l . input_dir/* | grep input_ | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" +ls -l . input_dir/* | grep "input_[fs]" | sed "s/\\(^[^ ]*\\) .* input/\\1 input/" ' "\ -input_dir/ input_dir/input_file input_dir/input_soft -> input_file input_file -> input_dir/input_file @@ -107,7 +106,6 @@ input_soft -> input_dir/input_soft Ok: 0 -rwxr----x input_dir/input_file lrwxrwxrwx input_file -dr-xr-x--- input_dir -rwxr----x input_file lrwxrwxrwx input_file " \ @@ -129,6 +127,7 @@ Ok "Ok\n" "" SKIP= +test x"$SKIP_KNOWN_BUGS" = x"" && { # Needs to be run under non-root for meaningful test optional FEATURE_TAR_CREATE testing "tar writing into read-only dir" '\ @@ -153,6 +152,8 @@ dr-xr-x--- input_dir " \ "" "" SKIP= +} + cd .. && rm -rf tar.tempdir || exit 1 -- cgit v1.1