Skip to content

Commit

Permalink
Fix small stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenvp committed Aug 15, 2017
1 parent 0d4bf8e commit 0c69fee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pytest_testdirectory/testdirectory.py
Expand Up @@ -339,7 +339,11 @@ def run(self, args, **kwargs):
if stderr is not None:
stderr = checkoutput.CheckOutput(output=stderr)

result = runresult.RunResult(command=' '.join(args), path=self.path(),
command = args
if isinstance(command, list):
command = ' '.join(command)

result = runresult.RunResult(command=command, path=self.path(),
stdout=stdout, stderr=stderr, returncode=popen.returncode,
time=end_time - start_time)

Expand Down

0 comments on commit 0c69fee

Please sign in to comment.