From 23fa383127df39ffbf2bc138c242057fabea4577 Mon Sep 17 00:00:00 2001 From: rhoerbe Date: Thu, 10 Jul 2014 16:53:08 +0200 Subject: [PATCH] utility for run_all_test script --- script/filter_testcase_ids.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 script/filter_testcase_ids.py diff --git a/script/filter_testcase_ids.py b/script/filter_testcase_ids.py new file mode 100755 index 0000000..a7e59c1 --- /dev/null +++ b/script/filter_testcase_ids.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +# extract test case IDs from json-formatted list (`sp_testdrv.py -l` or `idp_testdrv.py -l`) +# usage: +# sp_testdrv.py -l | filter_testcase_ids.py +__author__ = 'rhoerbe' + +import json, sys +jdata = json.load(sys.stdin) +for k in jdata: + print k["id"]