Commit e16f55a6 authored by Sasa Zhang's avatar Sasa Zhang
Browse files

Replace test_suite.py

parent 57397847
Pipeline #188488 failed with stage
in 2 minutes and 59 seconds
......@@ -168,8 +168,8 @@ class XmlTree:
print('tail: {} != {}.'.format(xml_file1.tail, xml_file2.tail))
return False
child1 = xml_file1.getchildren()
child2 = xml_file2.getchildren()
child1 = list(xml_file1)
child2 = list(xml_file2)
if len(child1) != len(child2):
if display_info:
print('children length differs, {} != {}.'.format(len(child1), len(child2)))
......@@ -489,12 +489,22 @@ def main():
if forecast_exists and station_exists and observation_exists:
file_output_path = os.path.join(test_suite_path + dir_path[1:], 'roadcast_test_suite_run.xml')
os.chdir(test_suite_path) # Change back the path so as to make the function call.
command_to_run = 'python3 ../../../../../src/frontend/metro.py {} --input-forecast {} --input-station {} ' \
'--input-observation {} --output-roadcast {}'.format(extra_parameter,
file_forecast_path,
file_station_path,
file_observation_path,
file_output_path)
# .gitlab-ci.yml version of command_to_run
# command_to_run = 'python3 ../../metro.py {} --input-forecast {} --input-station {} ' \
# '--input-observation {} --output-roadcast {}'.format(extra_parameter,
# file_forecast_path,
# file_station_path,
# file_observation_path,
# file_output_path)
if verbosity:
try:
print('\n>>>>>>>>>>>>>>>>>>>>>>>> {} starts to run...... <<<<<<<<<<<<<<<<<<<<<<<<<<'
......
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