]> www.infradead.org Git - users/sagi/blktests.git/commit
check: add ability to exclude a test or group
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 19 May 2017 13:17:10 +0000 (15:17 +0200)
committerOmar Sandoval <osandov@fb.com>
Fri, 19 May 2017 18:44:02 +0000 (11:44 -0700)
commit7b3f202e200efbec325ea2b1145d296cd3c6e29c
treee6ea4460de9647530f59a0ee2a34ad9640d9f9ce
parent85fb679c400db6698e7a98df1d2a0bc8f68f3715
check: add ability to exclude a test or group

Add the ability to exclude a test or whole test group from a test
run. Thus a user can explicitly decide which tests to skip like in
this example where one wants all of the 'block' group but block/001.

block/002 (remove a device while running blktrace)
    0.835s           ...
    runtime  + test  ...
[  363.132053] run blktests block/002 at 2017-05-19 13:01:56
[  363.136844] scsi host0: scsi_debug: version 1.86 [20160430]
[  363.136844]   dev_size_mb=8, opts=0x0, submit_queues=1, statistics=0
[  363.138819] scsi 0:0:0:0: Direct-Access     Linux    scsi_debug       0186 PQ: 0 ANSI: 7
[  363.199172] sd 0:0:0:0: [sda] 16384 512-byte logical blocks: (8.39 MB/8.00 MiB)
[  363.207053] sd 0:0:0:0: [sda] Write Protect is off
block/002 (remove a device while running blktrace)           [passed]

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
[Omar: use associative array, make explicit run take precedence over -x]
Signed-off-by: Omar Sandoval <osandov@fb.com>
check