]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/111: fix cp of missing file
authorXing Gu <gux.fnst@cn.fujitsu.com>
Wed, 24 Dec 2014 03:56:17 +0000 (14:56 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 24 Dec 2014 03:56:17 +0000 (14:56 +1100)
After installing the test suite, src directory only contains binary
programs in the final building directory. Here executing "cp src/itrash.c
$SCRATCH_MNT/${I}" will output "cp: cannot stat 'src/itrash.c': No
such file or directory" error message. Fix it.

Signed-off-by: Xing Gu <gux.fnst@cn.fujitsu.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/111

index bedead8f73fcd42a985f8737cb77d36f816cfac6..f33f3396d7d815dbb7cce0b5aff04ffbfe10de29 100755 (executable)
@@ -53,7 +53,7 @@ echo Create some files
 I=0
 while [ $I -lt 1000 ]
 do
-    cp src/itrash.c $SCRATCH_MNT/${I}
+    $XFS_IO_PROG -f -c "pwrite 0 512" $SCRATCH_MNT/${I} > /dev/null
     let I=$I+1
 done
 umount $SCRATCH_DEV