Add test for argparse crash

43929ced9
This commit is contained in:
Fabian Homborg 2019-04-29 17:03:16 +02:00
parent 43929ced90
commit 389f5074ad
3 changed files with 9 additions and 0 deletions

View file

@ -115,3 +115,6 @@ in function 'notargparse'
#################### ####################
# Ignoring unknown options # Ignoring unknown options
####################
# Check for crash when last option is unknown

View file

@ -186,3 +186,6 @@ or echo unexpected argparse return status $status >&2
# The unknown options are removed _entirely_. # The unknown options are removed _entirely_.
echo $argv echo $argv
echo $_flag_a echo $_flag_a
logmsg Check for crash when last option is unknown
argparse -i b/break -- "-b kubectl get pods -l name=foo"

View file

@ -137,3 +137,6 @@ expected argparse return status 57
# Ignoring unknown options # Ignoring unknown options
-t tango --wurst -t tango --wurst
alpha aaaa alpha aaaa
####################
# Check for crash when last option is unknown