Skip to content

Commit

Permalink
Search for commands to run in framework folder
Browse files Browse the repository at this point in the history
With this patch it's possible tot execute tests which are inside the
framework path by using the --run-command option.
  • Loading branch information
acerv committed Nov 1, 2023
1 parent 52de9a6 commit 69b32d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libkirk/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,13 @@ async def _exec_command(self, command: str) -> None:
try:
await libkirk.events.fire("run_cmd_start", command)

test = await self._framework.find_command(self._sut, command)

ret = await asyncio.wait_for(
self._sut.run_command(
command,
test.full_command,
cwd=test.cwd,
env=test.env,
iobuffer=RedirectSUTStdout(self._sut, True)),
timeout=self._exec_timeout
)
Expand Down

0 comments on commit 69b32d0

Please sign in to comment.