git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-'
@ 2008-10-11  0:21 Brandon Casey
  2008-10-11  0:24 ` Shawn O. Pearce
  0 siblings, 1 reply; 11+ messages in thread
From: Brandon Casey @ 2008-10-11  0:21 UTC (permalink / raw)
  To: Git Mailing List

Since dbf5e1e9, the '--no-validate' option is a Getopt::Long boolean
option. The '--no-' prefix (as in --no-validate) for boolean options
is not supported in Getopt::Long version 2.32 which was released with
Perl 5.8.0. This version only supports '--no' as in '--novalidate'.
More recent versions of Getopt::Long, such as version 2.34, support
either prefix. So use the older form in the tests.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 t/t9001-send-email.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index d098a01..561ae7d 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -109,7 +109,7 @@ test_expect_success 'allow long lines with --no-validate' '
 		--from="Example <nobody@example.com>" \
 		--to=nobody@example.com \
 		--smtp-server="$(pwd)/fake.sendmail" \
-		--no-validate \
+		--novalidate \
 		$patches longline.patch \
 		2>errors
 '
-- 
1.6.0.2.468.gd5b83

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH] t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-'
@ 2009-04-24 23:18 Brandon Casey
  0 siblings, 0 replies; 11+ messages in thread
From: Brandon Casey @ 2009-04-24 23:18 UTC (permalink / raw)
  To: git

The '--no-thread' option is a Getopt::Long boolean option. The '--no-'
prefix (as in --no-thread) for boolean options is not supported in
Getopt::Long version 2.32 which was released with Perl 5.8.0. This version
only supports '--no' as in '--nothread'.  More recent versions of
Getopt::Long, such as version 2.34, support either prefix. So use the older
form in the tests.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 t/t9001-send-email.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index d9420e0..ce26ea4 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -616,7 +616,7 @@ test_expect_success 'in-reply-to but no threading' '
 		--from="Example <nobody@example.com>" \
 		--to=nobody@example.com \
 		--in-reply-to="<in-reply-id@example.com>" \
-		--no-thread \
+		--nothread \
 		$patches |
 	grep "In-Reply-To: <in-reply-id@example.com>"
 '
-- 
1.6.2.4.24.gde59d2

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* Testsuite regression with perl 5.8.0 [Re: [ANNOUNCE] Git v2.3.0-rc2]
@ 2015-01-29 13:30 Tom G. Christensen
  2015-01-30  6:24 ` [PATCH] t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-' Tom G. Christensen
  0 siblings, 1 reply; 11+ messages in thread
From: Tom G. Christensen @ 2015-01-29 13:30 UTC (permalink / raw)
  To: git

On 28/01/15 00:35, Junio C Hamano wrote:
> A release candidate Git v2.3.0-rc2 is now available for testing
> at the usual places.
>

Commit 2cf770 added testing of the --[no-]xmailer option to git 
send-email in t9001-send-email.sh
Unfortunately it used the modern Getopt::long style of --no-<option> to 
negate the option which is not supported with Getopt::Long 2.32 as 
shipped with perl 5.8.0 on RHEL3 causing the tests to fail.

Changing the --no-xmailer option to the old --noxmailer style allows the 
tests to pass.

-tgc

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

end of thread, other threads:[~2015-02-12 23:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11  0:21 [PATCH] t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-' Brandon Casey
2008-10-11  0:24 ` Shawn O. Pearce
2008-10-11  0:44   ` Brandon Casey
  -- strict thread matches above, loose matches on Subject: below --
2009-04-24 23:18 Brandon Casey
2015-01-29 13:30 Testsuite regression with perl 5.8.0 [Re: [ANNOUNCE] Git v2.3.0-rc2] Tom G. Christensen
2015-01-30  6:24 ` [PATCH] t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-' Tom G. Christensen
2015-01-30 23:05   ` brian m. carlson
2015-01-31  2:40     ` Kyle J. McKay
2015-02-02  1:33       ` Junio C Hamano
2015-02-02 16:11         ` Kyle J. McKay
2015-02-02 20:12           ` Junio C Hamano
2015-02-12 23:12       ` 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).