markusthoemmes closed pull request #3282: Disable createKeystore if test 
execution is disabled

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/build.gradle b/tests/build.gradle
index 7cf5e189a3..e31f3ffe50 100644
--- a/tests/build.gradle
+++ b/tests/build.gradle
@@ -85,8 +85,14 @@ task createKeystore(dependsOn: deleteKeystore) {
     doLast {
         Properties props = new Properties()
         props.load(new FileInputStream(file('../')))
+        keystorePath.parentFile.mkdirs()
         def cmd = ['keytool', '-import', '-alias', 'Whisk', '-noprompt', 
'-trustcacerts', '-file', file(props['whisk.ssl.cert']), '-keystore', 
keystorePath, '-storepass', 'openwhisk']
         cmd.execute().waitForProcessOutput(System.out, System.err)
-compileTestScala.finalizedBy createKeystore
+afterEvaluate {
+    tasks.withType(Test) {
+        dependsOn createKeystore
+    }


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to