=== modified file 'lava_dispatcher/actions/lava_test_shell.py'
@@ -197,6 +197,7 @@
Target.android_deployment_data['lava_test_configure_startup'] = \
_configure_android_startup
+
def _get_testdef_git_repo(testdef_repo, tmpdir, revision):
cwd = os.getcwd()
gitdir = os.path.join(tmpdir, 'gittestrepo')
@@ -255,7 +256,7 @@
idx = len(self.testdefs)
- self._append_testdef(URLTestDefinition(idx, testdef))
+ self._append_testdef(URLTestDefinition(self.context, idx, testdef))
def load_from_repo(self, testdef_repo):
tmpdir = utils.mkdtemp(self.tmpbase)
@@ -277,7 +278,8 @@
testdef = yaml.load(f)
idx = len(self.testdefs)
- self._append_testdef(RepoTestDefinition(idx, testdef, repo, info))
+ self._append_testdef(
+ RepoTestDefinition(self.context, idx, testdef, repo, info))
def _bzr_info(url, bzrdir, name):
@@ -316,7 +318,8 @@
A test definition that was loaded from a URL.
"""
- def __init__(self, idx, testdef):
+ def __init__(self, context, idx, testdef):
+ self.context = context
self.testdef = testdef
self.idx = idx
self.test_run_id = '%s_%s' % (idx, self.testdef['metadata']['name'])
@@ -435,8 +438,8 @@
the device.
"""
- def __init__(self, idx, testdef, repo, info):
- URLTestDefinition.__init__(self, idx, testdef)
+ def __init__(self, context, idx, testdef, repo, info):
+ URLTestDefinition.__init__(self, context, idx, testdef)
self.repo = repo
self._sw_sources.append(info)