]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure on new ls test
authorPádraig Brady <P@draigBrady.com>
Fri, 25 Nov 2016 14:35:13 +0000 (14:35 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 25 Nov 2016 14:35:13 +0000 (14:35 +0000)
* tests/ls/quote-align.sh: Remove "total" line
which can vary per file system depending on allocation.
Reported by Assaf Gordon on OpenSolaris (5.11/5.10).

tests/ls/quote-align.sh

index d9e2c6321765b50ca5b1b326650431ba8233042a..a27a0927ac28d32fc34626a0a7839a55c834be87 100755 (executable)
@@ -34,7 +34,6 @@ cat <<EOF >exp || framework_failure_
 '$dirname':
 'a b'   ${c_pre}c.foo${c_post}
 '$dirname':
-total 0
 'a b'
  ${c_pre}c.foo${c_post}
 '$dirname':
@@ -56,7 +55,7 @@ done
 echo >> out || fail=1
 
 # Strip possible varying portion of long format
-sed 's/.*T //' out > k && mv k out
+sed -e 's/.*T //' -e '/^total/d' out > k && mv k out
 
 compare exp out || fail=1