success_with_args
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
# CONSTANTS
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
# readonly BASEDIR
|
||||
|
||||
# SCENARII
|
||||
|
||||
@@ -71,11 +70,16 @@ function do_false {
|
||||
}
|
||||
|
||||
function do_success {
|
||||
echo "count args: $#"
|
||||
[[ true==true ]] && echo true
|
||||
! false && echo unfalse
|
||||
return
|
||||
}
|
||||
|
||||
function do_success_with_args {
|
||||
echo "count args: $#"
|
||||
}
|
||||
|
||||
function do_unbound_variable {
|
||||
a=5
|
||||
echo "a=${a}"
|
||||
@@ -203,5 +207,5 @@ if test_contain_item SCENARII "$scenario"; then
|
||||
shift
|
||||
"do_${scenario}" "$@"
|
||||
else
|
||||
(>&2 echo "scenario <${scenario}> not found!" && usage && exit 2)
|
||||
(>&2 echo "scenario '${scenario}' not found!" && usage && exit 2)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user