diff --git a/avocado/core/test.py b/avocado/core/test.py index 81b78bcd6f186e08c5bf90eef7f09b371d7e54cb..02ca4a9fa1f6879310ac6f4b66f940daa9e94433 100644 --- a/avocado/core/test.py +++ b/avocado/core/test.py @@ -1021,12 +1021,17 @@ class SimpleTest(Test): Run an arbitrary command that returns either 0 (PASS) or !=0 (FAIL). """ + DATA_SOURCES = ["variant", "file"] + re_avocado_log = re.compile(r'^\d\d:\d\d:\d\d DEBUG\| \[stdout\]' r' \d\d:\d\d:\d\d WARN \|') def __init__(self, name, params=None, base_logdir=None, job=None): super(SimpleTest, self).__init__(name=name, params=params, base_logdir=base_logdir, job=job) + self._data_sources_mapping = {"variant": [lambda: self.datadir, + lambda: self.name.variant], + "file": [lambda: self.datadir]} self._command = None if self.filename is not None: self._command = pipes.quote(self.filename)