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

Replace test_suite.py

parent 47c50928
Pipeline #188570 failed with stage
in 1 minute and 8 seconds
...@@ -490,15 +490,7 @@ def main(): ...@@ -490,15 +490,7 @@ def main():
file_output_path = os.path.join(test_suite_path + dir_path[1:], 'roadcast_test_suite_run.xml') 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. 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 {} ' \ command_to_run = 'python3 ../../../../bin/metro {} --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, '--input-observation {} --output-roadcast {}'.format(extra_parameter,
file_forecast_path, file_forecast_path,
file_station_path, file_station_path,
...@@ -516,7 +508,7 @@ def main(): ...@@ -516,7 +508,7 @@ def main():
print('\nSyntax to run {}:'.format(folder)) print('\nSyntax to run {}:'.format(folder))
print('--------------------------------------------------------------------------------') print('--------------------------------------------------------------------------------')
print( print(
'python3 ../../../../../src/frontend/metro.py {0} --input-forecast ../test_suite' 'python3 ../../../../bin/metro {0} --input-forecast ../test_suite'
'/{1}/forecast.xml --input-station ../test_suite/{1}/station.xml --input' '/{1}/forecast.xml --input-station ../test_suite/{1}/station.xml --input'
'-observation ../test_suite/{1}/observation.xml --output-roadcast ' '-observation ../test_suite/{1}/observation.xml --output-roadcast '
'../test_suite/{1}/roadcast_individual_run.xml\n'.format(extra_parameter, folder)) '../test_suite/{1}/roadcast_individual_run.xml\n'.format(extra_parameter, folder))
...@@ -597,7 +589,7 @@ def main(): ...@@ -597,7 +589,7 @@ def main():
print(ripple_line) print(ripple_line)
print('Syntax to run this individual case with more details:') print('Syntax to run this individual case with more details:')
print('-----------------------------------------------------') print('-----------------------------------------------------')
print('python3 ../../../../../src/frontend/metro.py {0} --verbose-level 4 --input-forecast ../test_suite' print('python3 ../../../../bin/metro {0} --verbose-level 4 --input-forecast ../test_suite'
'/{1}/forecast.xml --input-station ../test_suite/{1}/station.xml --input' '/{1}/forecast.xml --input-station ../test_suite/{1}/station.xml --input'
'-observation ../test_suite/{1}/observation.xml --output-roadcast ' '-observation ../test_suite/{1}/observation.xml --output-roadcast '
'../test_suite/{1}/roadcast_individual_run.xml\n'.format(extra_parameter, case)) '../test_suite/{1}/roadcast_individual_run.xml\n'.format(extra_parameter, case))
......
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