From 1cc55d01c744aaa8fdbcd9b24c11ab9b7b34d5a4 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Tue, 28 Mar 2023 16:42:31 +0200 Subject: [PATCH] Run system tests sequentially if xdist is not available --- bin/tests/system/run.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index 2f4fcf7dd5..bbbe63ac29 100755 --- a/bin/tests/system/run.sh +++ b/bin/tests/system/run.sh @@ -26,8 +26,13 @@ import pytest def into_pytest_args(in_args): args = [] if in_args.expression is None: - # running all tests - execute in parallel - args.extend(["-n", "auto"]) + try: + import xdist + except ImportError: + pass + else: + # running all tests - execute in parallel + args.extend(["-n", "auto"]) else: args.extend(["-k", in_args.expression]) if in_args.noclean: