deb-python-pysaml2/script/filter_testcase_ids.py
Clint Byrum 99911f6c4c Fix python3 syntax errors
Retains python2.7 compatibility for all files. Fixes only syntax errors,
tests still fail on python3 for various reasons.
2015-05-15 11:52:15 -07:00

11 lines
274 B
Python
Executable File

#!/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"])