aboutsummaryrefslogtreecommitdiff
path: root/tests/block_weight/compare.py
blob: e058a707936f915c16290e903e5e56201feb4d62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python

import sys
import subprocess

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)
sys.exit(0)