Fix QA tests which use dd so that they specify posixly correct output
authorfsgqa <fsgqa>
Thu, 12 Jun 2003 04:17:41 +0000 (04:17 +0000)
committerfsgqa <fsgqa>
Thu, 12 Jun 2003 04:17:41 +0000 (04:17 +0000)
015
021
common.dump
common.repair

diff --git a/015 b/015
index 31db887a25b30e13315a3ef90719aab73060722d..ec6ead3fcb7a6a5eafc3dea924596080cf17720e 100755 (executable)
--- a/015
+++ b/015
@@ -91,7 +91,7 @@ echo "free space at start $free0" >> $seq.full
 
 echo "fill disk:"      # well, filesystem really - not disk
 
-dd if=/dev/zero of=$out bs=1024k 2>&1 | _filter_dd
+POSIXLY_CORRECT=yes dd if=/dev/zero of=$out bs=1024k 2>&1 | _filter_dd
 
 echo "check free space:"
 
diff --git a/021 b/021
index 5afd7eb3042f081a2521dcdb53d143ac0b0adf37..ac80418577af847afc9073cddf23ae4db1e7760f 100755 (executable)
--- a/021
+++ b/021
@@ -115,7 +115,7 @@ echo "*** make test file 2"
 touch $testfile.2
 echo "value_1" | _attr -s "a1" $testfile.2 >/dev/null
 echo "value_2" | _attr -s "a2-----" $testfile.2 >/dev/null
-( echo start ; dd if=/dev/zero bs=65525 count=1 ; echo end ) \
+( echo start; POSIXLY_CORRECT=yes dd if=/dev/zero bs=65525 count=1; echo end )\
        | _attr -s "a3" $testfile.2 >/dev/null
 _getfattr --absolute-names $testfile.2
 
index f4075d1445805fcd12f7464d690ee795190aa172..c24bec8d26061f8c46fd4b8fa19daa813a4bb186 100644 (file)
@@ -529,6 +529,7 @@ _create_dumpdir_largefile()
     _largesize=4294967297
     _largefile=$dump_dir/largefile
     echo "dd a largefile at offset $_largesize"
+    POSIXLY_CORRECT=yes \
     dd if=/dev/zero of=$_largefile bs=1 seek=$_largesize count=10 2>&1
     _stable_fs
 }      
index 0f24a1fa6fa76588a22f67b119086e69250b353f..0780788b4a0df47846c8d6ebf6190363d77bdcf0 100644 (file)
@@ -98,7 +98,9 @@ _check_repair()
        # some basic sanity checks...
        _check_scratch_fs
        _scratch_mount                                      #mount
+       POSIXLY_CORRECT=yes \
        dd if=/bin/sh of=$SCRATCH_MNT/sh 2>&1 |_filter_dd   #open,write
+       POSIXLY_CORRECT=yes \
        dd if=$SCRATCH_MNT/sh of=/dev/null 2>&1 |_filter_dd #read
        rm -f $SCRATCH_MNT/sh                               #unlink
        umount $SCRATCH_MNT                                 #umount