Skip to content
Snippets Groups Projects
Commit 527e0544 authored by Bichen Li's avatar Bichen Li
Browse files

- Add error raise function

parent 59d34e22
No related branches found
No related tags found
No related merge requests found
......@@ -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!')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment