Skip to content

Commit 747128b

Browse files
authored
Artifact from config instead of non-existing attribute (#20)
1 parent 726285a commit 747128b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/etos_test_runner/etr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def download_and_load(self):
9090
break
9191
self.etos.config.set("test_config", json_config)
9292
self.etos.config.set("context", json_config.get("context"))
93+
self.etos.config.set("artifact", json_config.get("artifact"))
9394

9495
def _run_tests(self):
9596
"""Run tests in ETOS test runner.

src/etos_test_runner/lib/executor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ def _triggered(self, test_name):
210210
:rtype: :obj:`eiffellib.events.eiffel_test_case_triggered_event.EiffelTestCaseTriggeredEvent` # pylint:disable=line-too-long
211211
"""
212212
return self.etos.events.send_test_case_triggered(
213-
{"id": test_name}, self.iut.artifact, links={"CONTEXT": self.context}
213+
{"id": test_name},
214+
self.etos.config.get("artifact"),
215+
links={"CONTEXT": self.context},
214216
)
215217

216218
def _started(self, test_name):
@@ -304,7 +306,7 @@ def execute(self, workspace):
304306
" ".join(self.checkout_command),
305307
self._checkout_tests,
306308
self.checkout_command,
307-
workspace.workspace
309+
workspace.workspace,
308310
) as test_directory:
309311
self.report_path = test_directory.joinpath(f"logs/{self.report_path}")
310312
self.logger.info("Report path: %r", self.report_path)

0 commit comments

Comments
 (0)