Skip to content

Commit

Permalink
Also ignore return code for background_commands if expect_return_code…
Browse files Browse the repository at this point in the history
… is None
  • Loading branch information
wcs1only committed Jan 12, 2021
1 parent 9417f8c commit 755d53a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mechanical_markdown/__init__.py
Expand Up @@ -7,6 +7,6 @@
from mechanical_markdown.recipe import Recipe as MechanicalMarkdown
from mechanical_markdown.parsers import MarkdownAnnotationError

__version__ = '0.2.0'
__version__ = '0.2.1'

__all__ = [MechanicalMarkdown, MarkdownAnnotationError]
2 changes: 1 addition & 1 deletion mechanical_markdown/step.py
Expand Up @@ -79,7 +79,7 @@ def wait_for_all_background_commands(self):
for command in self.commands:
if self.background:
command.wait_or_timeout(self.timeout)
if command.return_code != self.expect_return_code:
if self.expect_return_code is not None and command.return_code != self.expect_return_code:
success = False
return success

Expand Down

0 comments on commit 755d53a

Please sign in to comment.