git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] test: rename $satisfied to $satisfied_prereq
@ 2012-07-26 23:04 Junio C Hamano
  2012-07-26 23:11 ` [RFC/PATCH 2/2] test: allow prerequisite to be evaluated lazily Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2012-07-26 23:04 UTC (permalink / raw)
  To: git

All other shell variables that globally keep track of prerequisite
related states have "prereq" somewhere in their names.  Be consistent
and avoid name crashes.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 * Just a preparatory clean-up.

 t/test-lib-functions.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 80daaca..4dc027d 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -221,9 +221,9 @@ write_script () {
 # capital letters by convention).
 
 test_set_prereq () {
-	satisfied="$satisfied$1 "
+	satisfied_prereq="$satisfied_prereq$1 "
 }
-satisfied=" "
+satisfied_prereq=" "
 
 test_have_prereq () {
 	# prerequisites can be concatenated with ','
@@ -239,7 +239,7 @@ test_have_prereq () {
 	for prerequisite
 	do
 		total_prereq=$(($total_prereq + 1))
-		case $satisfied in
+		case "$satisfied_prereq" in
 		*" $prerequisite "*)
 			ok_prereq=$(($ok_prereq + 1))
 			;;
-- 
1.7.12.rc0.44.gc69a8ad

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-07-27 17:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 23:04 [PATCH 1/2] test: rename $satisfied to $satisfied_prereq Junio C Hamano
2012-07-26 23:11 ` [RFC/PATCH 2/2] test: allow prerequisite to be evaluated lazily Junio C Hamano
2012-07-26 23:19   ` [PATCH 3/2] test-lib: provide case insensitivity as a prerequisite Junio C Hamano
2012-07-26 23:28     ` [PATCH 4/2] test-lib: provide UTF8 behaviour " Junio C Hamano
2012-07-27 15:45   ` [RFC/PATCH 2/2] test: allow prerequisite to be evaluated lazily Jeff King
2012-07-27 15:50     ` Jeff King
2012-07-27 17:15       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).