From a27df6a18f174a32d77c69f27dba9102acc36f05 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Sat, 8 Jun 2024 12:58:05 +0530 Subject: [PATCH] ftests: Add minimum Python version Add Python version >= 3.6, as minimum required for executing ftests. It's required for multi-process/multi-threaded test cases to execute without time outs. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/ftests/ftests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ftests/ftests.py b/tests/ftests/ftests.py index da26d590..51162c69 100755 --- a/tests/ftests/ftests.py +++ b/tests/ftests/ftests.py @@ -452,6 +452,10 @@ def main(config): AUTOMAKE_HARD_ERROR = 99 AUTOMAKE_PASSED = 0 + if not (sys.version_info.major == 3 and sys.version_info.minor >= 6): + print("Minimum Python 3.6 required") + return AUTOMAKE_HARD_ERROR + try: setup(config, record_time=True) [passed_cnt, failed_cnt, skipped_cnt] = run_tests(config) -- 2.47.3