Skip to content

Commit

Permalink
Merge branch 'sj/t9117-path-is-file'
Browse files Browse the repository at this point in the history
GSoC practice to replace "test -f" with "test_path_is_file".

* sj/t9117-path-is-file:
  t9117: prefer test_path_* helper functions
  • Loading branch information
gitster committed Mar 11, 2024
2 parents 5b6262b + 0332e81 commit 0aa44f0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions t/t9117-git-svn-init-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,32 @@ test_expect_success 'setup svnrepo' '
test_expect_success 'basic clone' '
test ! -d trunk &&
git svn clone "$svnrepo"/project/trunk &&
test -d trunk/.git/svn &&
test -e trunk/foo &&
test_path_is_dir trunk/.git/svn &&
test_path_exists trunk/foo &&
rm -rf trunk
'

test_expect_success 'clone to target directory' '
test ! -d target &&
git svn clone "$svnrepo"/project/trunk target &&
test -d target/.git/svn &&
test -e target/foo &&
test_path_is_dir target/.git/svn &&
test_path_exists target/foo &&
rm -rf target
'

test_expect_success 'clone with --stdlayout' '
test ! -d project &&
git svn clone -s "$svnrepo"/project &&
test -d project/.git/svn &&
test -e project/foo &&
test_path_is_dir project/.git/svn &&
test_path_exists project/foo &&
rm -rf project
'

test_expect_success 'clone to target directory with --stdlayout' '
test ! -d target &&
git svn clone -s "$svnrepo"/project target &&
test -d target/.git/svn &&
test -e target/foo &&
test_path_is_dir target/.git/svn &&
test_path_exists target/foo &&
rm -rf target
'

Expand Down

0 comments on commit 0aa44f0

Please sign in to comment.