Re: [PATCH] tests: add btrfs mount tests

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

 



On Mar 14, 2016 at 02:20 Ruediger Meier wrote:
On Tuesday 02 February 2016, Stanislav Brabec wrote:
IMO this test needs some more error handling, see below.

+btrfs subvol create s2 >/dev/null

For example if you comment out above line (or if it would fail) then
all subtests below still succeed. This can't be right.

Well, it is a test suite for mount, not btrfs. I did not add any error checks in the code that creates the testing image.

Grepping through the whole test suite, I see that more than a half of all tests do not check for mkfs failure. Here we just have a multi-line mkfs.

It is possible to add a check for every command there, and fail the test if the command fails or returns something unexpected.

+NON_DEFAULT_SUBVOLID=$(btrfs subvol list "$TS_MOUNTPOINT-create" |

NON_DEFAULT_SUBVOLID will be empty.

"subvolid=$NON_DEFAULT_SUBVOLID" +

I am not sure how kernel will interpret subvolid=.

--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: sbrabec@xxxxxxxx
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                 fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux