t9138-git-svn-authors-prog.sh fixups
Several fixups of the t9138-git-svn-authors-prog.sh test script to
follow current recommendations in t/README.
- Fixed a Perl script with a full "#!/usr/bin/perl" shebang
to use write_script() and $PERL_PATH as per t/README.
- Placed svn-authors data setup inside a test_expect_success.
- Fixed trailing quotes to use the same indentation throughout.
Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
4a28f169ad
commit
01730a3bb4
@@ -7,21 +7,20 @@ test_description='git svn authors prog tests'
|
|||||||
|
|
||||||
. ./lib-git-svn.sh
|
. ./lib-git-svn.sh
|
||||||
|
|
||||||
cat > svn-authors-prog <<'EOF'
|
write_script svn-authors-prog "$PERL_PATH" <<-\EOF
|
||||||
#!/usr/bin/perl
|
|
||||||
$_ = shift;
|
$_ = shift;
|
||||||
if (s/-sub$//) {
|
if (s/-sub$//) {
|
||||||
print "$_ <$_\@sub.example.com>\n";
|
print "$_ <$_\@sub.example.com>\n";
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
print "$_ <$_\@example.com>\n";
|
print "$_ <$_\@example.com>\n";
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
chmod +x svn-authors-prog
|
|
||||||
|
|
||||||
cat > svn-authors <<'EOF'
|
test_expect_success 'svn-authors setup' '
|
||||||
|
cat >svn-authors <<-\EOF
|
||||||
ff = FFFFFFF FFFFFFF <fFf@other.example.com>
|
ff = FFFFFFF FFFFFFF <fFf@other.example.com>
|
||||||
EOF
|
EOF
|
||||||
|
'
|
||||||
|
|
||||||
test_expect_success 'setup svnrepo' '
|
test_expect_success 'setup svnrepo' '
|
||||||
for i in aa bb cc-sub dd-sub ee-foo ff
|
for i in aa bb cc-sub dd-sub ee-foo ff
|
||||||
|
|||||||
Reference in New Issue
Block a user