]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/430: Fix filename in "copy beyond end" test
authorLuis Henriques <lhenriques@suse.com>
Mon, 26 Jun 2017 16:40:52 +0000 (17:40 +0100)
committerEryu Guan <eguan@redhat.com>
Thu, 29 Jun 2017 03:14:16 +0000 (11:14 +0800)
The cmp command was using the wrong file to perform the comparison.
Use $testdir/beyond instead of $testdir/end.

Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/430

index 2ec126db98470b5eb103125e2ae9a640aab31955..5d6b8d6c2aa3ba23b790482d5f2c4b2718a7465f 100755 (executable)
@@ -87,7 +87,7 @@ md5sum $testdir/{file,end} | _filter_test_dir
 
 echo "Copy beyond end of original file"
 $XFS_IO_PROG -f -c "copy_range -s 4000 -l 2000 $testdir/file" "$testdir/beyond"
-cmp -n 1000 $testdir/file $testdir/end 4000
+cmp -n 1000 $testdir/file $testdir/beyond 4000
 echo "md5sums after copying beyond:"
 md5sum $testdir/{file,beyond} | _filter_test_dir