git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Avoid perl in t1300-repo-config
@ 2007-06-27 12:45 Alex Riesen
  2007-06-27 15:15 ` Frank Lichtenheld
  2007-06-28  4:30 ` Junio C Hamano
  0 siblings, 2 replies; 9+ messages in thread
From: Alex Riesen @ 2007-06-27 12:45 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Frank Lichtenheld, Junio C Hamano

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

It fixes the test on system where ActiveState Perl is used.
It is also shorter.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 t/t1300-repo-config.sh |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

[-- Attachment #2: 0001-Avoid-perl-in-t1300-repo-config.txt --]
[-- Type: text/plain, Size: 1472 bytes --]

From e844edbdc63150386dc4eb2c2080ece4f371cd04 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Wed, 27 Jun 2007 14:40:41 +0200
Subject: [PATCH] Avoid perl in t1300-repo-config

It fixes the test on system where ActiveState Perl is used.
It is shorter as a bonus.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 t/t1300-repo-config.sh |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 7a77bef..60b0dc5 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -530,24 +530,24 @@ EOF
 
 cat > expect <<\EOF
 Key: section.sub=section.val1
-Value: foo=bar
+foo=bar
 Key: section.sub=section.val2
-Value: foo
+foo
 bar
 Key: section.sub=section.val3
-Value: 
+
 
 
 Key: section.sub=section.val4
-Value: 
+
 Key: section.sub=section.val5
 EOF
 
-git config --null --list | perl -0ne 'chop;($key,$value)=split(/\n/,$_,2);print "Key: $key\n";print "Value: $value\n" if defined($value)' > result
+git config --null --list | xargs -n1 -0 echo 'Key:' > result
 
 test_expect_success '--null --list' 'cmp result expect'
 
-git config --null --get-regexp 'val[0-9]' | perl -0ne 'chop;($key,$value)=split(/\n/,$_,2);print "Key: $key\n";print "Value: $value\n" if defined($value)' > result
+git config --null --get-regexp 'val[0-9]' | xargs -n1 -0 echo 'Key:' > result
 
 test_expect_success '--null --get-regexp' 'cmp result expect'
 
-- 
1.5.2.2.1308.g540b6


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

end of thread, other threads:[~2007-06-28 14:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-27 12:45 [PATCH] Avoid perl in t1300-repo-config Alex Riesen
2007-06-27 15:15 ` Frank Lichtenheld
2007-06-27 15:47   ` Alex Riesen
2007-06-28  4:30 ` Junio C Hamano
2007-06-28  7:41   ` Alex Riesen
2007-06-28  8:56     ` Alex Riesen
2007-06-28  9:28     ` Jakub Narebski
2007-06-28 11:00       ` Alex Riesen
2007-06-28 14:19     ` Johannes Schindelin

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).