Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Oct 29, 2024
1 parent be63657 commit 77ef50d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions phlop/procs/runtimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def __init__(

def go():
if popen:
self._popen(*kwargs, **ekwargs)
self._popen(**ekwargs, **kwargs)
else:
self._run(
check=check, capture_output=capture_output, *kwargs, **ekwargs
check=check, capture_output=capture_output, **ekwargs, **kwargs
)

if working_dir:
Expand Down
6 changes: 3 additions & 3 deletions phlop/testing/parallel_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
logger = getLogger(__name__)


class TestCaseFailure(Exception): ...
class TestCaseFailure(Exception):
...


class LoggingMode(Enum):
Expand Down Expand Up @@ -145,11 +146,10 @@ def waiter(queue):

if isinstance(proc, CallableTest):
status = "finished" if proc.run.exitcode == 0 else "FAILED"

print(
proc.test_case.cmd, f"{status} in {proc.run.run_time:.2f} seconds"
)
if proc.run.exitcode > 0:
if proc.run.exitcode != 0:
proc.print_log_files()
if fail_fast:
raise TestCaseFailure("Some tests have failed")
Expand Down

0 comments on commit 77ef50d

Please sign in to comment.