aboutsummaryrefslogblamecommitdiff
path: root/tests/block_weight/compare.py
blob: c6be05206b9ad1447f879c14f3e88ef211e637ca (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                   
#!/usr/bin/python

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)
print 'comparing'
if S0 != S1:
  sys.exit(1)
sys.exit(0)