Searched refs:matchJSONKey (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/tc-testing/ |
H A D | tdc.py | 275 def find_in_json(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument 280 res = find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey) 285 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey) 293 def find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument 310 matchJSONKey) 314 for matchJSONKey, matchJSONVal in matchJSONVal.items(): 316 if matchJSONKey not in outputJSONVal: 318 failmsg = failmsg.format(matchJSONKey, matchJSONVal, outputJSONVal) 330 if type(outputJSONVal) == dict and (type(outputJSONVal[matchJSONKey]) == dict or 331 type(outputJSONVal[matchJSONKey]) == list): [all …]
|