Home
last modified time | relevance | path

Searched refs:matchJSONVal (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/tc-testing/
H A Dtdc.py275 def find_in_json(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
279 if type(matchJSONVal) == list:
280 res = find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey)
282 elif type(matchJSONVal) == dict:
283 res = find_in_json_dict(res, outputJSONVal, matchJSONVal)
285 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey)
293 def find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
294 if (type(matchJSONVal) != type(outputJSONVal)):
296 failmsg = failmsg.format(outputJSONVal, matchJSONVal)
301 if len(matchJSONVal) > len(outputJSONVal):
[all …]