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

ricardozanini pushed a commit to branch radtriste-fix-pipelines
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git

commit 904880107203b766f4c09d50779af70e84895ea3
Author: Ricardo Zanini <[email protected]>
AuthorDate: Tue Nov 21 15:36:56 2023 -0300

    Fix temporary dir creation on bats test
    
    Signed-off-by: Ricardo Zanini <[email protected]>
---
 .../common/scripts/tests/bats/kogito-swf-builder-build-app.bats     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/modules/kogito-swf/common/scripts/tests/bats/kogito-swf-builder-build-app.bats
 
b/modules/kogito-swf/common/scripts/tests/bats/kogito-swf-builder-build-app.bats
index 4fa64eff..d0993822 100644
--- 
a/modules/kogito-swf/common/scripts/tests/bats/kogito-swf-builder-build-app.bats
+++ 
b/modules/kogito-swf/common/scripts/tests/bats/kogito-swf-builder-build-app.bats
@@ -16,11 +16,11 @@ teardown() {
 }
 
 @test "verify copy resources is working" {
-    mkdir -p /tmp/resources
-    cp -r 
$BATS_TEST_DIRNAME/../../../../../../tests/shell/kogito-swf-builder/resources/greet-with-inputschema/*
 /tmp/resources/
+    TEMPD=$(mktemp -d)
+    cp -r 
$BATS_TEST_DIRNAME/../../../../../../tests/shell/kogito-swf-builder/resources/greet-with-inputschema/*
 ${TEMPD}
 
     # We don't care about the errors to try to execute and build the program, 
just the copy matters
-    source ${KOGITO_HOME}/launch/build-app.sh /tmp/resources/ || true
+    source ${KOGITO_HOME}/launch/build-app.sh ${TEMPD} || true
     
     [[ -f 
"${KOGITO_HOME}"/serverless-workflow-project/src/main/resources/greet.sw.json ]]
     [[ -f 
"${KOGITO_HOME}"/serverless-workflow-project/src/main/resources/schemas/input.json
 ]]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to