cv-test-mgr: Debugging output for bad cv commands.

This may help users diagnose next time a script is out of
sync with GUI features.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2021-05-03 19:03:52 -07:00
parent 1db9f92412
commit 3670ad0a53

View File

@@ -125,6 +125,13 @@ class cv_test(Realm):
}
debug_par = ""
rsp = self.json_post("/gui-json/cmd%s" % debug_par, data, debug_=False, response_json_list_=response_json)
try:
if response_json[0]["LAST"]["warnings"].startswith("Unknown"):
print("Unknown command?\n");
pprint(response_json)
except:
# Ignore un-handled structs at this point, let calling code deal with it.
pass
return response_json
#For auto save report