Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2 2/6] test-lib: refactor $GIT_SKIP_TESTS matching

From: Thomas Rast <hidden>
Date: 2016-06-15 22:57:47

Johannes Sixt [off-list ref] writes:
Am 6/17/2013 11:18, schrieb Thomas Rast:
quoted
+match_pattern_list () {
+	arg="$1"
+	shift
+	test -z "$*" && return 1
+	for pat
+	do
+		case "$arg" in
+		$pat)
+			return 0
+		esac
+	done
+	return 1
+}
Watch this failing test case:

   GIT_SKIP_TESTS="t950[012]" ./t3006-ls-files-long.sh

'pat' is too short and too sweet to be used as a shell variable name in a
library function. ;)
Gah!  Serves me right for not testing test-lib.  Thanks for noticing.

/me goes stand in the corner for a while

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help