From 59d34e22b2ff35310491522624af25ee542dc850 Mon Sep 17 00:00:00 2001 From: Bichen Li <libichen94@gmail.com> Date: Sat, 12 May 2018 00:17:15 +0200 Subject: [PATCH] fix bugs --- Assert_Results.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assert_Results.py b/Assert_Results.py index 3536850..18d1f0d 100644 --- a/Assert_Results.py +++ b/Assert_Results.py @@ -8,6 +8,8 @@ print("Test Start") # We need to extract all the result files from git now for files in os.listdir( os.path.abspath("reference-results/Neplan/BasicGrids")): - if files is not "Slack_Rxline_PQLoad": + if os.path.splitext(files)[0] == "Slack_Rxline_PQLoad": + pass + else: assert_modelia_neplan_results(os.path.splitext(files)[0]) # Assert the result, model result path read from cmd line print("Test End") -- GitLab