git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix false positives in t3404 due to SHELL=/bin/false
@ 2010-12-27  2:50 Robin H. Johnson
  2010-12-27  6:10 ` Junio C Hamano
  0 siblings, 1 reply; 11+ messages in thread
From: Robin H. Johnson @ 2010-12-27  2:50 UTC (permalink / raw)
  To: Git Mailing List

[-- Attachment #1: Type: text/plain, Size: 1405 bytes --]

If the user's shell in NSS passwd is /bin/false (eg as found during Gentoo's
package building), the git-rebase exec tests will fail, because they call
$SHELL around the command, and in the existing testcase, $SHELL was not being
cleared sufficently.

This lead to false positive failures of t3404 on systems where the package
build user was locked down as noted above.

Signed-off-by: "Robin H. Johnson" <robbat2@gentoo.org>
X-Gentoo-Bug: 349083
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=349083

diff -Nuar git-1.7.3.4.orig/t/t3404-rebase-interactive.sh git-1.7.3.4/t/t3404-rebase-interactive.sh
--- git-1.7.3.4.orig/t/t3404-rebase-interactive.sh	2010-12-16 02:52:11.000000000 +0000
+++ git-1.7.3.4/t/t3404-rebase-interactive.sh	2010-12-26 22:30:47.826421313 +0000
@@ -67,8 +67,8 @@
 # "exec" commands are ran with the user shell by default, but this may
 # be non-POSIX. For example, if SHELL=zsh then ">file" doesn't work
 # to create a file. Unseting SHELL avoids such non-portable behavior
-# in tests.
-SHELL=
+# in tests. It must be exported for it to take effect where needed.
+export SHELL=
 
 test_expect_success 'rebase -i with the exec command' '
 	git checkout master &&

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 330 bytes --]

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

end of thread, other threads:[~2011-01-05 18:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27  2:50 [PATCH] Fix false positives in t3404 due to SHELL=/bin/false Robin H. Johnson
2010-12-27  6:10 ` Junio C Hamano
2010-12-27  8:03   ` [PATCH v2] " Robin H. Johnson
2010-12-28 19:58     ` Junio C Hamano
2011-01-04 14:43     ` Vallon, Justin
2011-01-04 20:35       ` Robin H. Johnson
2011-01-04 22:28       ` Matthieu Moy
2011-01-04 22:58         ` Jonathan Nieder
2011-01-04 23:39           ` Junio C Hamano
2011-01-05 15:04             ` Vallon, Justin
2011-01-05 18:51               ` 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).