]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run system tests sequentially if xdist is not available
authorTom Krizek <tkrizek@isc.org>
Tue, 28 Mar 2023 14:42:31 +0000 (16:42 +0200)
committerTom Krizek <tkrizek@isc.org>
Mon, 22 May 2023 12:11:39 +0000 (14:11 +0200)
bin/tests/system/run.sh

index 2f4fcf7dd58ba757faf8cc904d8cbf03032faed1..bbbe63ac29f63a5e10654c6a4b48799ce792f025 100755 (executable)
@@ -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: