]> www.infradead.org Git - users/hch/blktests.git/commit
block/005,008: do exit if fio did not finish within timeout
authorXiao Liang <xiliang@redhat.com>
Sat, 11 May 2019 15:36:51 +0000 (23:36 +0800)
committerOmar Sandoval <osandov@osandov.com>
Wed, 5 Jun 2019 22:21:30 +0000 (15:21 -0700)
commite689373c30a271b6a1fa7b45770dd306306ebd8a
treeb99bc992e8938b01b2b699df08feb3a7401c6dab
parent167c72c7217753f3b4f5b22bf74bc522cdeeca71
block/005,008: do exit if fio did not finish within timeout

In some bad situation, fio needs taking over several hours to complete
random read operations with specified size. The test may skip out in such
cases and does not block other cases run.

With this patch, the case will be ended within $TIMEOUT(if set) or 900s.
block/005 => nvme1n1 (switch schedulers while doing IO)      [failed]
    runtime      ...  1800.477s
    read iops    ...
    --- tests/block/005.out 2019-03-31 14:29:39.905449312 +0000
    +++ /home/ec2-user/blktests/results/nvme1n1/block/005.out.bad 2019-05-07 04:10:16.026681842 +0000
    @@ -1,2 +1,4 @@
     Running block/005
    +fio did not finish after 900 seconds which probably caused by
    +lower disk performance
     Test complete

Reviewed-by: Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>
Signed-off-by: Xiao Liang <xiliang@redhat.com>
[Omar: add some headroom for explicit timeouts]
Signed-off-by: Omar Sandoval <osandov@osandov.com>
tests/block/005
tests/block/008