Assert_Results.py 522 Bytes
Newer Older
1 2 3 4 5 6 7 8
import re
import os
import sys

from dataprocessing.Validationtools import *
from dataprocessing.readtools import *
print("Test Start")
# We need to extract all the result files from git now
Bichen Li's avatar
Bichen Li committed
9
for files in os.listdir(
10
        os.path.abspath("reference-results/Neplan/BasicGrids")):
Bichen Li's avatar
Bichen Li committed
11 12 13
    if os.path.splitext(files)[0] == "Slack_Rxline_PQLoad":
        pass
    else:
Bichen Li's avatar
Bichen Li committed
14
        assert_modelia_neplan_results(os.path.splitext(files)[0]) #  Assert the result, model result path read from cmd line
15
print("Test End")