Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (18 sloc) 0.674 kb
#!/usr/bin/python
# a simple script that gathers all the test results from drillbit
# and spits out the results on stdout in JSON
import os, sys
scriptDir = os.path.dirname(__file__)
sys.path.append(os.path.join(scriptDir, "..", "support", "common"))
import simplejson
if len(sys.argv) < 2:
print >>sys.stderr, "Usage: %s [drillbit-results-dir]" % sys.argv[0]
sys.exit(-1)
resultsDir = sys.argv[1]
results = {}
for file in os.listdir(resultsDir):
if file[len(file)-5:] == ".json" and file != "drillbit.json":
test = file[0:len(file)-5]
result = simplejson.load(open(os.path.join(resultsDir, file), 'r'))
results[test] = result
print simplejson.dumps(results)
Jump to Line
Something went wrong with that request. Please try again.