mirror of
https://github.com/monero-project/monero.git
synced 2025-12-10 07:22:34 +01:00
tests: handle any cmake detected python interpreter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user