Commit 527e0544 authored by Bichen Li's avatar Bichen Li

- Add error raise function

parent 59d34e22
Pipeline #49318 failed with stage
......@@ -8,8 +8,5 @@ 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 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")
......@@ -56,7 +56,7 @@ def assert_modelia_neplan_results(net_name): # Assert the model using the funct
else:
for name in fail_list:
print("\033[1;31;40mTest on %s Failed\033[0m" % name)
raise ValueError('Test is not passed!')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment