From ef4c4373a5bed3cd77064e38055d2127c14eeb04 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Fri, 15 Jan 2021 09:57:44 -0800 Subject: [PATCH] nightly: Fix python syntax error. is oprator should not be used for Scalars evidently. Signed-off-by: Ben Greear --- unit_tests/Nightly_Sanity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_tests/Nightly_Sanity.py b/unit_tests/Nightly_Sanity.py index 233a110e1..302febe54 100755 --- a/unit_tests/Nightly_Sanity.py +++ b/unit_tests/Nightly_Sanity.py @@ -1674,7 +1674,7 @@ with open('sanity_status.json', 'w') as json_file: # Calculate percent of tests passed for report for key in ap_models: - if report_data['fw_available'][key] is "No": + if report_data['fw_available'][key] == "No": report_data["pass_percent"][key] = "Not Run" else: no_of_tests = len(report_data["tests"][key])