diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-31 20:52:05 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-31 20:52:05 +0300 |
commit | 6ddaace7ac9f2ed13d7b210d87c715c9f7209c7f (patch) | |
tree | 7bb0c3429dba09eb4e7a3fa9afcb316e7ffe82c0 | |
parent | 86f5b1276bf444b164ac3a3b60b411afe4bd7ec4 (diff) | |
download | rneovim-6ddaace7ac9f2ed13d7b210d87c715c9f7209c7f.tar.gz rneovim-6ddaace7ac9f2ed13d7b210d87c715c9f7209c7f.tar.bz2 rneovim-6ddaace7ac9f2ed13d7b210d87c715c9f7209c7f.zip |
ci: Do not shift if there are not enough arguments
-rw-r--r-- | ci/common/suite.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ci/common/suite.sh b/ci/common/suite.sh index 8c44e5f974..a70cafc92c 100644 --- a/ci/common/suite.sh +++ b/ci/common/suite.sh @@ -45,10 +45,10 @@ fail() { run_test() { local cmd="$1" - shift + test $# -gt 0 && shift local test_name="$1" : ${test_name:=$cmd} - shift + test $# -gt 0 && shift if ! eval "$cmd" ; then fail "${test_name}" "$@" fi @@ -56,12 +56,12 @@ run_test() { run_test_wd() { local timeout="$1" - shift + test $# -gt 0 && shift local cmd="$1" - shift + test $# -gt 0 && shift local test_name="$1" : ${test_name:=$cmd} - shift + test $# -gt 0 && shift local output_file="$(mktemp)" local status_file="$(mktemp)" local restarts=5 |