@matheusbsbs / matheus-bagliano / commits / a786091b4a
Fork 0

t9124: clean up chdir usage

Spawn subshells when running things in subdirectories instead of chdir-ing to the path of an undefined variable, which is confusing. Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Sep 6, 2008 at 18:29 UTC a786091b4a487bc08bbff4864717cf5d8383e983
1 file changed +2 -4
t/t9124-git-svn-dcommit-auto-props.sh
+2 -4
@@ -29,13 +29,11 @@ test_expect_success 'initialize git-svn' '
29 '
30
31 test_expect_success 'enable auto-props config' '
32 - cd "$gittestrepo" &&
32 mkdir user &&
33 generate_auto_props yes >user/config
34 '
35
36 test_expect_success 'add files matching auto-props' '
38 - cd "$gittestrepo" &&
37 echo "#!$SHELL_PATH" >exec1.sh &&
38 chmod +x exec1.sh &&
39 echo "hello" >hello.txt &&
@@ -46,12 +44,10 @@ test_expect_success 'add files matching auto-props' '
44 '
45
46 test_expect_success 'disable auto-props config' '
49 - cd "$gittestrepo" &&
47 generate_auto_props no >user/config
48 '
49
50 test_expect_success 'add files matching disabled auto-props' '
54 - cd "$gittestrepo" &&
51 echo "#$SHELL_PATH" >exec2.sh &&
52 chmod +x exec2.sh &&
53 echo "world" >world.txt &&
@@ -62,6 +58,7 @@ test_expect_success 'add files matching disabled auto-props' '
58 '
59
60 test_expect_success 'check resulting svn repository' '
61 +(
62 mkdir work &&
63 cd work &&
64 svn co "$svnrepo" &&
@@ -81,6 +78,7 @@ test_expect_success 'check resulting svn repository' '
78 test "x$(svn propget svn:mime-type world.txt)" = "x" &&
79 test "x$(svn propget svn:eol-style world.txt)" = "x" &&
80 test "x$(svn propget svn:mime-type zot)" = "x"
81 +)
82 '
83
84 test_done