From f7f5a4a64218ac5236612168c59987f90ebc1a70 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Date: Sat, 3 Nov 2018 16:41:14 +0100 Subject: [PATCH] python_test macros: also support parameters starting with a dash Signed-off-by: Pierre-Yves --- ypkg2/rc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ypkg2/rc.yml b/ypkg2/rc.yml index d9bcbad..db8695e 100644 --- a/ypkg2/rc.yml +++ b/ypkg2/rc.yml @@ -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 @@ -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