public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] mkfs01 testcases issue
@ 2015-12-25 17:37 Shuang Qiu
  2016-01-05 13:48 ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Shuang Qiu @ 2015-12-25 17:37 UTC (permalink / raw)
  To: ltp

Hi,

While running LTP commands testcases,these three 
tests(mkfs01_msdos,mkfs01_vfat,mkswap01) sometimes failed.
It is because that mkfs.vfat/mkswap on the test block device which is 
made as btrfs( in previous mkfs01_btrfs test) does not work.
blkid still show "TYPE="btrfs" after mkfs.vfat/mkswap.
Seems the issue is only reproduced with a very small size of block 
device(less than 20M).
Does anyone hit similar issue,is it a kernel or btrfs bug?

Anyway,how about making the test block device $LTP_DEV to the original 
filesystem in tst_release_device(),so it will avoid such effect between 
different testcases.

--- a/testcases/lib/test.sh
+++ b/testcases/lib/test.sh
@@ -253,6 +253,7 @@ tst_acquire_device()
  tst_release_device()
  {
         if [ ${TST_DEVICE_FLAG} -eq 0 ]; then
+               tst_mkfs ${LTP_DEV_FS_TYPE} ${LTP_DEV}
                 return
         fi


Thanks
Shuang

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-05 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-25 17:37 [LTP] mkfs01 testcases issue Shuang Qiu
2016-01-05 13:48 ` Cyril Hrubis
2016-01-05 14:21   ` Cyril Hrubis
2016-01-05 14:35   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox