Avoid perl in t1300-repo-config
It fixes the test on system where ActiveState Perl is used. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7051c3b129
commit
2b9a50208f
@ -529,25 +529,23 @@ cat > .git/config <<\EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > expect <<\EOF
|
cat > expect <<\EOF
|
||||||
Key: section.sub=section.val1
|
section.sub=section.val1
|
||||||
Value: foo=bar
|
foo=barQsection.sub=section.val2
|
||||||
Key: section.sub=section.val2
|
foo
|
||||||
Value: foo
|
barQsection.sub=section.val3
|
||||||
bar
|
|
||||||
Key: section.sub=section.val3
|
|
||||||
Value:
|
|
||||||
|
|
||||||
|
|
||||||
Key: section.sub=section.val4
|
Qsection.sub=section.val4
|
||||||
Value:
|
Qsection.sub=section.val5Q
|
||||||
Key: section.sub=section.val5
|
|
||||||
EOF
|
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 | tr '[\000]' 'Q' > result
|
||||||
|
echo >>result
|
||||||
|
|
||||||
test_expect_success '--null --list' 'cmp result expect'
|
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]' | tr '[\000]' 'Q' > result
|
||||||
|
echo >>result
|
||||||
|
|
||||||
test_expect_success '--null --get-regexp' 'cmp result expect'
|
test_expect_success '--null --get-regexp' 'cmp result expect'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user