]> granicus.if.org Git - graphviz/commitdiff
Refactor python interpreter selection
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 31 May 2020 15:36:57 +0000 (17:36 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 2 Jun 2020 21:56:53 +0000 (23:56 +0200)
ci/test.sh

index 8451b91f9e5677eb24cbd7b19322f29c7e6e11ab..2c6f24f87d9cf218af223e49f43b0e2f8dcd9387 100755 (executable)
@@ -31,7 +31,8 @@ else
 fi
 cd graphviz-${GV_VERSION}
 if command -v python3; then
-    python3 -m pytest --junitxml=report.xml tests
+    python=python3
 else
-    python2 -m pytest --junitxml=report.xml tests
+    python=python2
 fi
+$python -m pytest --junitxml=report.xml tests