Add system test to measure recovery after partition (#20902)
* Add system test to measure recovery after partition * shellcheck * increase partition length until failure * adjust parameters and output * different stopping condition
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys, json
|
||||
import sys, json, argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--empty_error", action="store_true", help="If present, do not print error message")
|
||||
args = parser.parse_args()
|
||||
|
||||
data=json.load(sys.stdin)
|
||||
|
||||
@ -7,7 +11,7 @@ if 'results' in data:
|
||||
for result in data['results']:
|
||||
if 'series' in result:
|
||||
print(result['series'][0]['columns'][1] + ': ' + str(result['series'][0]['values'][0][1]))
|
||||
else:
|
||||
elif not args.empty_error:
|
||||
print("An expected result from CURL request is missing")
|
||||
else:
|
||||
elif not args.empty_error:
|
||||
print("No results returned from CURL request")
|
||||
|
Reference in New Issue
Block a user