File: filter_testcase_ids.py

package info (click to toggle)
python-pysaml2 7.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,604 kB
  • sloc: xml: 388,184; python: 66,155; makefile: 148; sh: 80
file content (13 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
import sys


jdata = json.load(sys.stdin)
for k in jdata:
    print(k["id"])