fix testsuite false positive
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 21 Jan 2013 07:28:37 +0000 (08:28 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 21 Jan 2013 07:28:37 +0000 (08:28 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
testsuite/mkfs.minix.tests

index 7eecaf230c43ab1e64709d897a3d49032963d934..324eaafced39809c8fc71491728c8abc4fa822fd 100755 (executable)
@@ -9,7 +9,7 @@
 # testing "test name" "options" "expected result" "file input" "stdin"
 
 # '\n' produces 10 on little endian, but not on big endian
-cr=`echo | od -i | sed 's/.* //g;2d'`
+cr=`echo | od -i | sed 's/ *$//g;s/.* //g;2d'`
 if [ x"$cr" = x"10" ]; then
        hash=4f35f7afeba07d56055bed1f29ae20b7
 else