aboutsummaryrefslogtreecommitdiff
path: root/tests/block_weight/compare.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-27 20:57:07 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-07 16:46:02 +0000
commitfa43b547804496ea2bd7ad42893708f97b4f442c (patch)
treedc039c1f06506c1f3f11e5e25a052e66baaf301f /tests/block_weight/compare.py
parentMerge pull request #4852 (diff)
downloadmonero-fa43b547804496ea2bd7ad42893708f97b4f442c.tar.xz
tests: handle any cmake detected python interpreter
Diffstat (limited to '')
-rwxr-xr-xtests/block_weight/compare.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/block_weight/compare.py b/tests/block_weight/compare.py
index c6be05206..e058a7079 100755
--- a/tests/block_weight/compare.py
+++ b/tests/block_weight/compare.py
@@ -3,10 +3,17 @@
import sys
import subprocess
-print 'running: ', sys.argv[1]
-S0 = subprocess.check_output(sys.argv[1], stderr=subprocess.STDOUT)
-print 'running: ', sys.argv[2]
-S1 = subprocess.check_output(sys.argv[2], stderr=subprocess.STDOUT)
+if len(sys.argv) == 4:
+ first = [sys.argv[1], sys.argv[2]]
+ second = [sys.argv[3]]
+else:
+ first = [sys.argv[1]]
+ second = [sys.argv[2]]
+
+print 'running: ', first
+S0 = subprocess.check_output(first, stderr=subprocess.STDOUT)
+print 'running: ', second
+S1 = subprocess.check_output(second, stderr=subprocess.STDOUT)
print 'comparing'
if S0 != S1:
sys.exit(1)