diff mbox

xfs/111: fix cp of missing file

Message ID 1419061802-27324-1-git-send-email-gux.fnst@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Xing Gu Dec. 20, 2014, 7:50 a.m. UTC
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>
---
 tests/xfs/111 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dave Chinner Dec. 21, 2014, 10:09 p.m. UTC | #1
On Sat, Dec 20, 2014 at 03:50:02PM +0800, Xing Gu wrote:
> 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>
> ---
>  tests/xfs/111 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/xfs/111 b/tests/xfs/111
> index bedead8..a900184 100755
> --- a/tests/xfs/111
> +++ b/tests/xfs/111
> @@ -53,7 +53,7 @@ echo Create some files
>  I=0
>  while [ $I -lt 1000 ]
>  do
> -    cp src/itrash.c $SCRATCH_MNT/${I}
> +    cp src/itrash* $SCRATCH_MNT/${I}
>      let I=$I+1
>  done
>  umount $SCRATCH_DEV

Just use $XFS_IO_PROG to create the files.

Cheers,

Dave.
Xing Gu Dec. 22, 2014, 2:09 a.m. UTC | #2
On 12/22/2014 06:09 AM, Dave Chinner wrote:
> On Sat, Dec 20, 2014 at 03:50:02PM +0800, Xing Gu wrote:
>> 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>
>> ---
>>   tests/xfs/111 | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tests/xfs/111 b/tests/xfs/111
>> index bedead8..a900184 100755
>> --- a/tests/xfs/111
>> +++ b/tests/xfs/111
>> @@ -53,7 +53,7 @@ echo Create some files
>>   I=0
>>   while [ $I -lt 1000 ]
>>   do
>> -    cp src/itrash.c $SCRATCH_MNT/${I}
>> +    cp src/itrash* $SCRATCH_MNT/${I}
>>       let I=$I+1
>>   done
>>   umount $SCRATCH_DEV
>
> Just use $XFS_IO_PROG to create the files.
>

Got it. Thanks!

regards,
Xing Gu

> Cheers,
>
> Dave.
>
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/xfs/111 b/tests/xfs/111
index bedead8..a900184 100755
--- a/tests/xfs/111
+++ b/tests/xfs/111
@@ -53,7 +53,7 @@  echo Create some files
 I=0
 while [ $I -lt 1000 ]
 do
-    cp src/itrash.c $SCRATCH_MNT/${I}
+    cp src/itrash* $SCRATCH_MNT/${I}
     let I=$I+1
 done
 umount $SCRATCH_DEV