]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
inject: skip tests when knob dir exists but knob doesn't
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 02:17:48 +0000 (18:17 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 16 Feb 2019 12:06:29 +0000 (20:06 +0800)
commitf98cc2256bbef3ee63d60cba965d3f64ad4ca743
treec7a40c4b41f215552ce31ad8e07ba1c4bde61cf8
parente6897e32b83e2e54c592bd947805a788a3b1c7c8
inject: skip tests when knob dir exists but knob doesn't

If the XFS error injection knob directory exists but the knob itself
doesn't, then we know that this kernel doesn't support the knob and
can skip the test.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/inject