File tree Expand file tree Collapse file tree 4 files changed +35
-23
lines changed Expand file tree Collapse file tree 4 files changed +35
-23
lines changed Original file line number Diff line number Diff line change @@ -68,28 +68,41 @@ svn_cmd () {
68
68
svn " $orig_svncmd " --config-dir " $svnconf " " $@ "
69
69
}
70
70
71
- for d in \
72
- " $SVN_HTTPD_PATH " \
73
- /usr/sbin/apache2 \
74
- /usr/sbin/httpd \
75
- ; do
76
- if test -f " $d "
71
+ if test -n " $SVN_HTTPD_PORT "
72
+ then
73
+ for d in \
74
+ " $SVN_HTTPD_PATH " \
75
+ /usr/sbin/apache2 \
76
+ /usr/sbin/httpd \
77
+ ; do
78
+ if test -f " $d "
79
+ then
80
+ SVN_HTTPD_PATH=" $d "
81
+ break
82
+ fi
83
+ done
84
+ if test -z " $SVN_HTTPD_PATH "
77
85
then
78
- SVN_HTTPD_PATH= " $d "
79
- break
86
+ skip_all= ' skipping git svn tests, Apache not found '
87
+ test_done
80
88
fi
81
- done
82
- for d in \
83
- " $SVN_HTTPD_MODULE_PATH " \
84
- /usr/lib/apache2/modules \
85
- /usr/libexec/apache2 \
86
- ; do
87
- if test -d " $d "
89
+ for d in \
90
+ " $SVN_HTTPD_MODULE_PATH " \
91
+ /usr/lib/apache2/modules \
92
+ /usr/libexec/apache2 \
93
+ ; do
94
+ if test -d " $d "
95
+ then
96
+ SVN_HTTPD_MODULE_PATH=" $d "
97
+ break
98
+ fi
99
+ done
100
+ if test -z " $SVN_HTTPD_MODULE_PATH "
88
101
then
89
- SVN_HTTPD_MODULE_PATH= " $d "
90
- break
102
+ skip_all= ' skipping git svn tests, Apache module dir not found '
103
+ test_done
91
104
fi
92
- done
105
+ fi
93
106
94
107
start_httpd () {
95
108
repo_base_path=" $1 "
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ test_expect_success FUNNYNAMES \
96
96
" git rm -f 'space embedded' 'tab embedded' 'newline
97
97
embedded'"
98
98
99
- test_expect_success RO_DIR ' Test that "git rm -f" fails if its rm fails' '
99
+ test_expect_success SANITY ' Test that "git rm -f" fails if its rm fails' '
100
100
chmod a-w . &&
101
101
test_must_fail git rm -f baz &&
102
102
chmod 775 .
Original file line number Diff line number Diff line change @@ -17,11 +17,10 @@ test_expect_success 'setup test repository' '
17
17
> foo &&
18
18
svn_cmd add foo &&
19
19
svn_cmd commit -m "add foo"
20
- )
20
+ ) &&
21
+ start_httpd
21
22
'
22
23
23
- start_httpd
24
-
25
24
test_expect_success ' clone trunk with "-r HEAD"' '
26
25
git svn clone -r HEAD "$svnrepo/trunk" g &&
27
26
( cd g && git rev-parse --symbolic --verify HEAD )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ code and message.'
16
16
# snapshot settings
17
17
18
18
test_expect_success ' setup' "
19
- test_commit 'SnapshotTests' 'i can has snapshot? '
19
+ test_commit 'SnapshotTests' 'i can has snapshot'
20
20
"
21
21
22
22
You can’t perform that action at this time.
0 commit comments