Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/tc-testing/
Dtdc.py276 def find_in_json(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
281 res = find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey)
286 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey)
294 def find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
311 matchJSONKey)
315 for matchJSONKey, matchJSONVal in matchJSONVal.items():
317 if matchJSONKey not in outputJSONVal:
319 failmsg = failmsg.format(matchJSONKey, matchJSONVal, outputJSONVal)
331 if type(outputJSONVal) == dict and (type(outputJSONVal[matchJSONKey]) == dict or
332 type(outputJSONVal[matchJSONKey]) == list):
[all …]