aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-09-22 16:10:27 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-09-22 16:11:14 -0700
commit7a4e8e4498f257e5327fc8fdc7f94145ae4075ef (patch)
tree2f88d7a5031be3e6f1475cf6791c2d3b92d424e4 /src
parent89a17fe41b3de62304c6c6237c92dcc8af879f71 (diff)
php: fix jenkins flake
Diffstat (limited to 'src')
-rwxr-xr-xsrc/php/bin/run_tests.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/php/bin/run_tests.sh b/src/php/bin/run_tests.sh
index 953f408ea8..1fe68cdab4 100755
--- a/src/php/bin/run_tests.sh
+++ b/src/php/bin/run_tests.sh
@@ -31,7 +31,11 @@
# Loads the local shared library, and runs all of the test cases in tests/
# against it
set -e
-cd $(dirname $0)
+cd $(dirname $0)/../../..
+root=$(pwd)
+cd src/php/bin
source ./determine_extension_dir.sh
+# in some jenkins macos machine, somehow the PHP build script can't find libgrpc.dylib
+export DYLD_LIBRARY_PATH=$root/libs/$config
php $extension_dir $(which phpunit) -v --debug --strict \
../tests/unit_tests