aboutsummaryrefslogtreecommitdiff
path: root/tests/difficulty/wide_difficulty.py
blob: 41a2a632dbef1be0fbb8f748194b8c88027b8f92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

from __future__ import print_function
import sys
import subprocess

python = sys.argv[1]
py = sys.argv[2]
c = sys.argv[3]
data = sys.argv[4]

first = python + " " + py + " > " + data
second = [c, '--wide', data]

try:
  print('running: ', first)
  subprocess.check_call(first, shell=True)
  print('running: ', second)
  subprocess.check_call(second)
except:
  sys.exit(1)