-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.py
More file actions
27 lines (21 loc) · 719 Bytes
/
Copy pathrun_tests.py
File metadata and controls
27 lines (21 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import subprocess
from os import listdir
from os.path import isfile
test_configs = [ f for f in (f for f in listdir(".") if isfile(f)) if ".json" == f[-5:]]
errors = list()
for f in test_configs:
# try:
# subprocess.check_output(["./transitionTest",f],stderr=subprocess.STDOUT)
# except subprocess.CalledProcessError,e:
# print f,"failed\n",e.output
print "**********",f,"*********"
try:
subprocess.check_call(["./transitionTest",f],stderr=subprocess.STDOUT)
except subprocess.CalledProcessError,e:
print f,"failed\n",e.returncode
errors.append([f,e.returncode])
print "OK",len(test_configs)-len(errors)
if errors:
print "ERROR",len(errors)
for f,code in errors:
print f,code