File: filter_testcase_ids.py

package info (click to toggle)
python-pysaml2 3.0.0-5%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 27,672 kB
  • sloc: xml: 228,756; python: 62,815; makefile: 168; sh: 104
file content (10 lines) | stat: -rwxr-xr-x 274 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
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"])