Skip to content

Commit

Permalink
skip stderr tests with runners
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Nov 14, 2023
1 parent e5fb9cd commit 365b489
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ def runCommand(self, cmdfilter: Optional[str], runWithValgrind: bool):
# assume stderr is always going to be string
stderr = output.stderr

# runners (e.g. wine) spill their own output into stderr,
# ignore stderr tests when using a runner.
if self.runnerCmd != "" and "stderr" in self.expected:
stderr = self.expected["stderr"]

self.commandOutput = CommandOutput(stdout, output.returncode, stderr)
return True

Expand Down

0 comments on commit 365b489

Please sign in to comment.