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 4fa64eff8..d0993822d 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 ]]