Skip to content

Commit

Permalink
Merge branch 'jn/t9010-work-around-broken-svnadmin'
Browse files Browse the repository at this point in the history
* jn/t9010-work-around-broken-svnadmin:
  t9010: svnadmin can fail even if available
  • Loading branch information
Junio C Hamano committed Jan 13, 2011
2 parents 4f93fc7 + 0316bba commit 4b297df
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions t/t9010-svn-fe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@ test_description='check svn dumpfile importer'

. ./test-lib.sh

if ! svnadmin -h >/dev/null 2>&1
then
skip_all='skipping svn-fe tests, svn not available'
test_done
fi

svnconf=$PWD/svnconf
export svnconf

svn_cmd () {
subcommand=$1 &&
shift &&
mkdir -p "$svnconf" &&
svn "$subcommand" --config-dir "$svnconf" "$@"
}

reinit_git () {
rm -fr .git &&
git init
Expand All @@ -41,10 +25,21 @@ test_expect_success 'v3 dumps not supported' '
test_cmp empty stream
'

test_expect_success 't9135/svn.dump' '
svnadmin create simple-svn &&
svnadmin load simple-svn <"$TEST_DIRECTORY/t9135/svn.dump" &&
svn_cmd export "file://$PWD/simple-svn" simple-svnco &&
test_expect_success 'set up svn repo' '
svnconf=$PWD/svnconf &&
mkdir -p "$svnconf" &&
if
svnadmin -h >/dev/null 2>&1 &&
svnadmin create simple-svn &&
svnadmin load simple-svn <"$TEST_DIRECTORY/t9135/svn.dump" &&
svn export --config-dir "$svnconf" "file://$PWD/simple-svn" simple-svnco
then
test_set_prereq SVNREPO
fi
'

test_expect_success SVNREPO 't9135/svn.dump' '
git init simple-git &&
test-svn-fe "$TEST_DIRECTORY/t9135/svn.dump" >simple.fe &&
(
Expand Down

0 comments on commit 4b297df

Please sign in to comment.