]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common/filter: extend _filter_xfs_io to match -nan
authorEric Whitney <enwlinux@gmail.com>
Thu, 14 Apr 2022 14:22:58 +0000 (10:22 -0400)
committerEryu Guan <guaneryu@gmail.com>
Sun, 17 Apr 2022 12:32:05 +0000 (20:32 +0800)
commitca53ba1e74ebbde853dec09fee93b5e730b9ca1e
tree8cff4831f8da234589b1492b7f241baa09411eb7
parent16676f2f2c3b19f19b5cb259e95139351e6e9bc2
common/filter: extend _filter_xfs_io to match -nan

When run on ext4 with sufficiently fast x86_64 hardware, generic/130
sometimes fails because xfs_io can report rate values as -nan:
0.000000 bytes, 0 ops; 0.0000 sec (-nan bytes/sec and -nan ops/sec)

_filter_xfs_io matches the strings 'inf' or 'nan', but not '-nan'.  In
that case it fails to convert the actual output to a normalized form
matching generic/130's golden output.  Extend the regular expression
used to match xfs_io's output to fix this.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/filter