Re: [PATCH 4/5] btrfs-progs: tests: fix typo in convert-tests/008-readonly-image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/27/17 9:27 PM, Qu Wenruo wrote:
> 
> 
> On 2017年07月27日 23:47, jeffm@xxxxxxxx wrote:
>> From: Jeff Mahoney <jeffm@xxxxxxxx>
>>
>> The dd in convert-tests/008-readonly-image is expected to fail, so
>> there being a typo in the file name has gone unnoticed.
> 
> Thanks for catching this.
> This is very embarrassing.
> 
>>
>> Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx>
>> ---
>>   tests/convert-tests/008-readonly-image/test.sh | 4 +++-
>>   1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/tests/convert-tests/008-readonly-image/test.sh
>> b/tests/convert-tests/008-readonly-image/test.sh
>> index 27c9373..cc846fa 100755
>> --- a/tests/convert-tests/008-readonly-image/test.sh
>> +++ b/tests/convert-tests/008-readonly-image/test.sh
>> @@ -14,9 +14,10 @@ convert_test_prep_fs $default_mke2fs
>>   run_check_umount_test_dev
>>   convert_test_do_convert
>>   run_check_mount_test_dev
>> +run_check e2fsck -n "$TEST_MNT/ext2_saved/image"
>>     # It's expected to fail
>> -$SUDO_HELPER dd if=/dev/zero of="$TEST_MNT/ext2_save/image" bs=1M
>> count=1 \
>> +$SUDO_HELPER dd if=/dev/zero of="$TEST_MNT/ext2_saved/image" bs=1M
>> count=1 \
>>       &> /dev/null
> 
> BTW, now we have run_mustfail() function, so we don't need to manually
> check the return value now.

Ah, right.  I'll incorporate this with Lakshmipathi's feedback.

-Jeff

> Thanks,
> Qu
> 
>>   if [ $? -ne 1 ]; then
>>       echo "after convert ext2_save/image is not read-only"
>> @@ -24,3 +25,4 @@ if [ $? -ne 1 ]; then
>>   fi
>>   run_check_umount_test_dev
>>   convert_test_post_rollback
>> +
>>
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
Jeff Mahoney
SUSE Labs

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux