Home
last modified time | relevance | path

Searched refs:matchJSONVal (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
280 if type(matchJSONVal) == list:
281 res = find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey)
283 elif type(matchJSONVal) == dict:
284 res = find_in_json_dict(res, outputJSONVal, matchJSONVal)
286 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey)
294 def find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
295 if (type(matchJSONVal) != type(outputJSONVal)):
297 failmsg = failmsg.format(outputJSONVal, matchJSONVal)
302 if len(matchJSONVal) > len(outputJSONVal):
[all …]