Skip to content

Commit 0ff4bdb

Browse files
committed
Merge branch 'jn/gitweb-test-lib'
* jn/gitweb-test-lib: t/gitweb-lib.sh: Use tabs for indent consistently t/gitweb-lib.sh: Use GIT_BUILD_DIR
2 parents 083dd39 + 89d1b5b commit 0ff4bdb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/gitweb-lib.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ our \$site_name = '[localhost]';
1919
our \$site_header = '';
2020
our \$site_footer = '';
2121
our \$home_text = 'indextext.html';
22-
our @stylesheets = ('file:///$TEST_DIRECTORY/../gitweb/static/gitweb.css');
23-
our \$logo = 'file:///$TEST_DIRECTORY/../gitweb/static/git-logo.png';
24-
our \$favicon = 'file:///$TEST_DIRECTORY/../gitweb/static/git-favicon.png';
22+
our @stylesheets = ('file:///$GIT_BUILD_DIR/gitweb/static/gitweb.css');
23+
our \$logo = 'file:///$GIT_BUILD_DIR/gitweb/static/git-logo.png';
24+
our \$favicon = 'file:///$GIT_BUILD_DIR/gitweb/static/git-favicon.png';
2525
our \$projects_list = '';
2626
our \$export_ok = '';
2727
our \$strict_export = '';
@@ -38,7 +38,7 @@ gitweb_run () {
3838
GATEWAY_INTERFACE='CGI/1.1'
3939
HTTP_ACCEPT='*/*'
4040
REQUEST_METHOD='GET'
41-
SCRIPT_NAME="$TEST_DIRECTORY/../gitweb/gitweb.perl"
41+
SCRIPT_NAME="$GIT_BUILD_DIR/gitweb/gitweb.perl"
4242
QUERY_STRING=""$1""
4343
PATH_INFO=""$2""
4444
export GATEWAY_INTERFACE HTTP_ACCEPT REQUEST_METHOD \
@@ -81,8 +81,8 @@ if ! test_have_prereq PERL; then
8181
fi
8282

8383
perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
84-
skip_all='skipping gitweb tests, perl version is too old'
85-
test_done
84+
skip_all='skipping gitweb tests, perl version is too old'
85+
test_done
8686
}
8787

8888
gitweb_init

0 commit comments

Comments
 (0)