aboutsummaryrefslogtreecommitdiffstats
path: root/coin_test_instructions.py
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2022-03-22 07:34:51 +0200
committerSimo Fält <simo.falt@qt.io>2022-03-22 10:43:28 +0000
commit6f20389eecdd3148b44ede8cd179d324ba79cb4f (patch)
tree22c86e9dacce8a5c2380ba1e9bfcc79bc166e07b /coin_test_instructions.py
parentf7db5ff297c27c3c2058a937edd4546bd74bdf20 (diff)
Use python 3.8 when running CI integrations in Linux - take 2
Pick-to: 6.2 Change-Id: Ia78ca23984a08ff93dbf9c64ee96706478f8c93d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'coin_test_instructions.py')
-rw-r--r--coin_test_instructions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coin_test_instructions.py b/coin_test_instructions.py
index 898d4fd73..732a5ba86 100644
--- a/coin_test_instructions.py
+++ b/coin_test_instructions.py
@@ -93,6 +93,8 @@ def call_testrunner(python_ver, buildnro):
# When the 'python_ver' variable is empty, we are using Python 2
# Pip is always upgraded when CI template is provisioned, upgrading it in later phase may cause perm issue
run_instruction([env_pip, "install", "-r", "requirements.txt"], "Failed to install dependencies")
+ # Install distro to replace missing platform.linux_distribution() in python3.8
+ run_instruction([env_pip, "install", "distro"], "Failed to install distro")
cmd = [env_python, "testrunner.py", "test",
"--blacklist", "build_history/blacklist.txt",
@@ -123,6 +125,8 @@ def run_test_instructions():
call_testrunner("3.6.1", str(testRun))
call_testrunner("3.8.1", str(testRun))
call_testrunner("3.10.0", str(testRun))
+ elif CI_HOST_OS == "Linux":
+ call_testrunner("3.8", str(testRun))
else:
call_testrunner("3", str(testRun))