Skip to content

Commit f8d0215

Browse files
committed
Merge branch 'rj/maint-test-fixes' into maint
* rj/maint-test-fixes: t9501-*.sh: Fix a test failure on Cygwin lib-git-svn.sh: Add check for mis-configured web server variables lib-git-svn.sh: Avoid setting web server variables unnecessarily t9142: Move call to start_httpd into the setup test t3600-rm.sh: Don't pass a non-existent prereq to test #15
2 parents 305579f + 1b3187b commit f8d0215

File tree

4 files changed

+35
-23
lines changed

4 files changed

+35
-23
lines changed

t/lib-git-svn.sh

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,41 @@ svn_cmd () {
6868
svn "$orig_svncmd" --config-dir "$svnconf" "$@"
6969
}
7070

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"
7785
then
78-
SVN_HTTPD_PATH="$d"
79-
break
86+
skip_all='skipping git svn tests, Apache not found'
87+
test_done
8088
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"
88101
then
89-
SVN_HTTPD_MODULE_PATH="$d"
90-
break
102+
skip_all='skipping git svn tests, Apache module dir not found'
103+
test_done
91104
fi
92-
done
105+
fi
93106

94107
start_httpd () {
95108
repo_base_path="$1"

t/t3600-rm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ test_expect_success FUNNYNAMES \
9696
"git rm -f 'space embedded' 'tab embedded' 'newline
9797
embedded'"
9898

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' '
100100
chmod a-w . &&
101101
test_must_fail git rm -f baz &&
102102
chmod 775 .

t/t9142-git-svn-shallow-clone.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ test_expect_success 'setup test repository' '
1717
> foo &&
1818
svn_cmd add foo &&
1919
svn_cmd commit -m "add foo"
20-
)
20+
) &&
21+
start_httpd
2122
'
2223

23-
start_httpd
24-
2524
test_expect_success 'clone trunk with "-r HEAD"' '
2625
git svn clone -r HEAD "$svnrepo/trunk" g &&
2726
( cd g && git rev-parse --symbolic --verify HEAD )

t/t9501-gitweb-standalone-http-status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ code and message.'
1616
# snapshot settings
1717

1818
test_expect_success 'setup' "
19-
test_commit 'SnapshotTests' 'i can has snapshot?'
19+
test_commit 'SnapshotTests' 'i can has snapshot'
2020
"
2121

2222

0 commit comments

Comments
 (0)