From 140a30e36eeb87b2e6cd037e622e119886db34d0 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Mon, 31 Jul 2023 17:02:55 +0000 Subject: [PATCH] t/fiotestlib: use config variable to skip test at runtime Check a test config variable to skip a test at runtime. This will be used to skip a test when the test runner determines that it should not be run. Signed-off-by: Vincent Fu --- t/fiotestlib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/fiotestlib.py b/t/fiotestlib.py index 1f35de0a..a96338a3 100755 --- a/t/fiotestlib.py +++ b/t/fiotestlib.py @@ -382,9 +382,10 @@ def run_fio_tests(test_list, test_env, args): for config in test_list: if (args.skip and config['test_id'] in args.skip) or \ - (args.run_only and config['test_id'] not in args.run_only): + (args.run_only and config['test_id'] not in args.run_only) or \ + ('force_skip' in config and config['force_skip']): skipped = skipped + 1 - print(f"Test {config['test_id']} SKIPPED (User request)") + print(f"Test {config['test_id']} SKIPPED (User request or override)") continue if issubclass(config['test_class'], FioJobFileTest): -- 2.25.1