You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2019/12/18 12:51:47 UTC

[openwhisk] 03/03: If OPENWHISK_HOME is defined, use it as the path to gradlew otherwise use relative path.

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git

commit 4f8ba43da70ae08af5c4b7f0720396d62d1a9514
Author: Rodric Rabbah <ro...@gmail.com>
AuthorDate: Tue Dec 17 22:48:17 2019 -0500

    If OPENWHISK_HOME is defined, use it as the path to gradlew otherwise use relative path.
---
 tests/performance/gatling_tests/build.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/performance/gatling_tests/build.sh b/tests/performance/gatling_tests/build.sh
index 547abd6..02cd3fa 100755
--- a/tests/performance/gatling_tests/build.sh
+++ b/tests/performance/gatling_tests/build.sh
@@ -18,6 +18,8 @@
 
 set -e
 
+GRADLEW_PATH=${OPENWHISK_HOME:-../../../../../../../../..}
+
 if [ -f ".built" ]; then
   echo "Test zip artifacts already built, skipping"
   exit 0
@@ -27,7 +29,7 @@ fi
 jv=$(java -version 2>&1 | head -1 | awk -F'"' '{print $2}')
 if [[ $jv == 1.8.* ]]; then
   echo "java version is $jv (ok)"
-  (cd src/gatling/resources/data/src/java && ../../../../../../../../../gradlew build && cp build/libs/gatling-1.0.jar ../../javaAction.jar)
+  (cd src/gatling/resources/data/src/java && "$GRADLEW_PATH/gradlew" build && cp build/libs/gatling-1.0.jar ../../javaAction.jar)
   touch .built
 else
   echo "java version is $jv (not ok)"