Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (18 sloc) 0.674 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/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)
Something went wrong with that request. Please try again.