autotest: Add skylab control file location to hard-coded list
BUG=chromium:873220
TEST=None
Change-Id: I3d2e8f4a1f99503b4b3ea96002b0b39e71a1d7b4
Reviewed-on: https://chromium-review.googlesource.com/1171521
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
diff --git a/tko/parse.py b/tko/parse.py
index 81da439..22701f2 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -258,9 +258,15 @@
return
max_result_size_KB = control_data.DEFAULT_MAX_RESULT_SIZE_KB
- # Client side test saves the test control to file `control`, while server
- # side test saves the test control to file `control.srv`
- for control_file in ['control', 'control.srv']:
+ hardcoded_control_file_names = (
+ # client side test control, as saved in old Autotest paths.
+ 'control',
+ # server side test control, as saved in old Autotest paths.
+ 'control.srv',
+ # All control files, as saved in skylab.
+ 'control.from_control_name',
+ )
+ for control_file in hardcoded_control_file_names:
control = os.path.join(path, control_file)
try:
max_result_size_KB = control_data.parse_control(