]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fuzzy: explicitly check for common/inject in _require_xfs_stress_online_repair
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Dec 2022 22:12:53 +0000 (14:12 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 14 Jan 2023 13:48:31 +0000 (21:48 +0800)
In _require_xfs_stress_online_repair, make sure that the test has
sourced common/inject before we try to call its functions.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/fuzzy

index 94a6ce85a370e954eb859c595edb6582820dc0dc..de9e398984b078d445e90f88f7a8967dd7148f7d 100644 (file)
@@ -382,6 +382,8 @@ _require_xfs_stress_scrub() {
 _require_xfs_stress_online_repair() {
        _require_xfs_stress_scrub
        _require_xfs_io_command "repair"
+       command -v _require_xfs_io_error_injection &>/dev/null || \
+               _notrun 'xfs repair stress test requires common/inject'
        _require_xfs_io_error_injection "force_repair"
        _require_freeze
 }