mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	ci: Do not shift if there are not enough arguments
This commit is contained in:
		| @@ -45,10 +45,10 @@ fail() { | |||||||
|  |  | ||||||
| run_test() { | run_test() { | ||||||
|   local cmd="$1" |   local cmd="$1" | ||||||
|   shift |   test $# -gt 0 && shift | ||||||
|   local test_name="$1" |   local test_name="$1" | ||||||
|   : ${test_name:=$cmd} |   : ${test_name:=$cmd} | ||||||
|   shift |   test $# -gt 0 && shift | ||||||
|   if ! eval "$cmd" ; then |   if ! eval "$cmd" ; then | ||||||
|     fail "${test_name}" "$@" |     fail "${test_name}" "$@" | ||||||
|   fi |   fi | ||||||
| @@ -56,12 +56,12 @@ run_test() { | |||||||
|  |  | ||||||
| run_test_wd() { | run_test_wd() { | ||||||
|   local timeout="$1" |   local timeout="$1" | ||||||
|   shift |   test $# -gt 0 && shift | ||||||
|   local cmd="$1" |   local cmd="$1" | ||||||
|   shift |   test $# -gt 0 && shift | ||||||
|   local test_name="$1" |   local test_name="$1" | ||||||
|   : ${test_name:=$cmd} |   : ${test_name:=$cmd} | ||||||
|   shift |   test $# -gt 0 && shift | ||||||
|   local output_file="$(mktemp)" |   local output_file="$(mktemp)" | ||||||
|   local status_file="$(mktemp)" |   local status_file="$(mktemp)" | ||||||
|   local restarts=5 |   local restarts=5 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 ZyX
					ZyX