Skip to content

Commit

Permalink
add #skipbashtest
Browse files Browse the repository at this point in the history
  • Loading branch information
pahaz committed May 12, 2019
1 parent 11a052c commit 27be6db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ files
changelog
=========

** 0.0.8 **
- add ``#skipbashtest`` support

** 0.0.7 **
- fix! remove ugly and useless options
- feat! Test README.rst `#4 <https://github.com/pahaz/bashtest/issues/4>`_
Expand Down
7 changes: 5 additions & 2 deletions bashtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import subprocess
import glob

__version__ = '0.0.7'
__version__ = '0.0.8'
NAME = 'bashtest'
CHECK_EXITCODE = False

Expand Down Expand Up @@ -74,7 +74,10 @@ def parseargs():
def __re_repl(match):
g1 = match.group(1)
g2 = match.group(2)
return '%s>>> run(%s)' % (g1, quote(g2.replace('\\', '\\\\')))
g2 = quote(g2.replace('\\', '\\\\'))
if re.search(r'#skipbashtest', g2):
return 'skip! %r %r' % (g1, g2)
return '%s>>> run(%s)' % (g1, g2)


def main():
Expand Down

0 comments on commit 27be6db

Please sign in to comment.