diff --git a/avocado/core/jobdata.py b/avocado/core/jobdata.py index ef5abd1fddaf99bdd0816ceee04e4f9f638c14b0..40b7ff47e87aabbb49d644fabc29fb24f7ddbef3 100644 --- a/avocado/core/jobdata.py +++ b/avocado/core/jobdata.py @@ -30,7 +30,9 @@ JOB_DATA_FALLBACK_DIR = 'replay' CONFIG_FILENAME = 'config' TEST_REFERENCES_FILENAME = 'test_references' TEST_REFERENCES_FILENAME_LEGACY = 'urls' -VARIANTS_FILENAME = 'multiplex' +VARIANTS_FILENAME = 'variants' +# TODO: Remove when 36lts is discontinued +VARIANTS_FILENAME_LEGACY = 'multiplex' PWD_FILENAME = 'pwd' ARGS_FILENAME = 'args' CMDLINE_FILENAME = 'cmdline' @@ -122,6 +124,8 @@ def retrieve_variants(resultsdir): Retrieves the job Mux object from the results directory. """ recorded_mux = _retrieve(resultsdir, VARIANTS_FILENAME) + if recorded_mux is None: + recorded_mux = _retrieve(resultsdir, VARIANTS_FILENAME_LEGACY) if recorded_mux is None: return None with open(recorded_mux, 'r') as mux_file: diff --git a/selftests/functional/test_replay_basic.py b/selftests/functional/test_replay_basic.py index 2db7a445f2b8bf742391fbcafeab311f5f331215..e3f4073ad6154da816f52f8bf3a017b0723de05c 100644 --- a/selftests/functional/test_replay_basic.py +++ b/selftests/functional/test_replay_basic.py @@ -60,7 +60,7 @@ class ReplayTests(unittest.TestCase): """ Checks if all expected files are there. """ - file_list = ['multiplex', 'config', 'test_references', 'pwd', 'args', + file_list = ['variants', 'config', 'test_references', 'pwd', 'args', 'cmdline'] for filename in file_list: path = os.path.join(self.jobdir, 'jobdata', filename)