Skip to content

Commit

Permalink
Merge pull request #3 from kyrios123/macros
Browse files Browse the repository at this point in the history
python_test macros: also support parameters starting with a dash
  • Loading branch information
sunnyflunk authored Nov 10, 2018
2 parents c01c783 + f7f5a4a commit 7f25dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ypkg2/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ actions:
if [[ -z $1 ]]; then
python2 setup.py test || exit 1
elif [[ $1 =~ .*\.py$ ]]; then
elif [[ $1 =~ .*\.py$ ]] || [[ $1 == \-* ]]; then
python2 "$@" || exit 1
else
"$@" || exit
Expand Down Expand Up @@ -239,7 +239,7 @@ actions:
if [[ -z $1 ]]; then
python3 setup.py test || exit 1
elif [[ $1 =~ .*\.py$ ]]; then
elif [[ $1 =~ .*\.py$ ]] || [[ $1 == \-* ]]; then
python3 "$@" || exit 1
else
"$@" || exit
Expand Down

0 comments on commit 7f25dd4

Please sign in to comment.