Refactor system-test dir structure and add stability test (#7530)
This commit is contained in:
13
system-test/testnet-automation-json-parser.py
Executable file
13
system-test/testnet-automation-json-parser.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
import sys, json
|
||||
|
||||
data=json.load(sys.stdin)
|
||||
|
||||
if 'results' in data:
|
||||
for result in data['results']:
|
||||
if 'series' in result:
|
||||
print result['series'][0]['columns'][1].encode() + ': ' + str(result['series'][0]['values'][0][1])
|
||||
else:
|
||||
print "An expected result from CURL request is missing"
|
||||
else:
|
||||
print "No results returned from CURL request"
|
Reference in New Issue
Block a user