Skip to content
Snippets Groups Projects
Commit c91bb544 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Story SW-300: fix newline error in stationtest

parent 8376e1fe
Branches
Tags
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
......@@ -73,6 +73,8 @@ def is_station_test(content):
"""
pattern = r'(?:\d{8})(?:\,.*)*'
for line in content:
if line is '':
continue
if not re.match(pattern, line):
return False
return True
......@@ -125,8 +127,7 @@ def compose_api_url_for_given_test_type(content):
elif is_rtsm_test(content):
query = 'rtsm/insert_raw'
else:
raise ValueError('The path format cannot refer both to RTSM and station test. ' +
'Please specify either --station_test or --rtsm')
raise ValueError('The file content is not a RTSM nor a station test output.')
return query
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment