Skip to content

Commit 2e99f6d

Browse files
committed
Fix pre-push testing.
1 parent 96d4fe6 commit 2e99f6d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

install-dev-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414
pip install --user -r requirements.txt
1515

1616
# Install a hook to run tests before pushing.
17-
ln -s ../test.sh .git/hooks/pre-push
17+
ln -sf ../../test.sh .git/hooks/pre-push

test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash -ex
2-
cd "`dirname $0`"
2+
# Run tests for HTTPS Everywhere
3+
4+
# We have to change to the right directory because this is sometimes invoked
5+
# through a symlink in .git/hooks/pre-push.
6+
cd $(dirname $(readlink -f $0))
37

48
# dummy Jetpack addon that contains tests
59
TEST_ADDON_PATH=./https-everywhere-tests/

0 commit comments

Comments
 (0)