[Bug 191191] tests/mdconfig/legacy_test fails if /dev/md0 is already attached to the system

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 19 22:15:35 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191191

--- Comment #1 from yaneurabeya at gmail.com ---
Works now with the work I did converting the testcase from prove to ATF:

% mdmfs -s 10m 0 /mnt/
% kyua test
mdconfig_test:attach_vnode_non_explicit_type  ->  passed  [0.088s]
mdconfig_test:attach_vnode_explicit_type  ->  passed  [0.109s]
mdconfig_test:attach_vnode_smaller_than_file  ->  passed  [0.118s]
mdconfig_test:attach_vnode_larger_than_file  ->  passed  [0.086s]
mdconfig_test:attach_vnode_sector_size  ->  passed  [0.093s]
mdconfig_test:attach_malloc  ->  passed  [0.098s]
mdconfig_test:attach_swap  ->  passed  [0.070s]
mdconfig_test:attach_with_specific_unit_number  ->  passed  [0.067s]

8/8 passed (0 failed)
Committed action 37
% umount /mnt/
% kyua test
mdconfig_test:attach_vnode_non_explicit_type  ->  passed  [0.083s]
mdconfig_test:attach_vnode_explicit_type  ->  passed  [0.085s]
mdconfig_test:attach_vnode_smaller_than_file  ->  passed  [0.076s]
mdconfig_test:attach_vnode_larger_than_file  ->  passed  [0.077s]
mdconfig_test:attach_vnode_sector_size  ->  passed  [0.079s]
mdconfig_test:attach_malloc  ->  passed  [0.070s]
mdconfig_test:attach_swap  ->  passed  [0.069s]
mdconfig_test:attach_with_specific_unit_number  ->  passed  [0.064s]

8/8 passed (0 failed)
Committed action 38
[root at freebsd-10-x64 /usr/tests/sbin/mdconfig]# mdconfig -l
md0
[root at freebsd-10-x64 /usr/tests/sbin/mdconfig]# mdconfig -d -u 0
[root at freebsd-10-x64 /usr/tests/sbin/mdconfig]# kyua test
mdconfig_test:attach_vnode_non_explicit_type  ->  passed  [0.087s]
mdconfig_test:attach_vnode_explicit_type  ->  passed  [0.077s]
mdconfig_test:attach_vnode_smaller_than_file  ->  passed  [0.075s]
mdconfig_test:attach_vnode_larger_than_file  ->  passed  [0.075s]
mdconfig_test:attach_vnode_sector_size  ->  passed  [0.080s]
mdconfig_test:attach_malloc  ->  passed  [0.080s]
mdconfig_test:attach_swap  ->  passed  [0.068s]
mdconfig_test:attach_with_specific_unit_number  ->  passed  [0.080s]

8/8 passed (0 failed)
Committed action 39
% mdconfig -l

I removed some of the implied testcases (the querying sections mostly) because
it was already covered in the other sections.

The commit for this change can be found here:
https://github.com/yaneurabeya/freebsd/commit/9cc8adcfad852cadb97637cdeddc462a7b7bf33b

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list