]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: df-output: accept multiple spaces in header
authorAssaf Gordon <assafgordon@gmail.com>
Fri, 22 May 2015 18:09:27 +0000 (14:09 -0400)
committerPádraig Brady <P@draigBrady.com>
Fri, 22 May 2015 19:45:23 +0000 (20:45 +0100)
* tests/df/df-output.sh: Allow for multiple spaces in the header line
of 'df', resulting from alignment with disk sizes >= 10TB.

tests/df/df-output.sh

index f469d4151c2a262e6251e19279b246678d1319c4..d81f0ee4348c8629725c47cdd8622463e69a9918 100755 (executable)
@@ -93,7 +93,7 @@ EOF
 
 df -B1K --output=size '.' >out || fail=1
 sed -e '1 {
-          s/ //
+          s/ *//
           q
         }' out > out2
 compare exp out2 || fail=1