diff --git a/.github/workflows/test_linux.yml b/.github/workflows/test_linux.yml index fe4e5bef9a..043e76f4c1 100644 --- a/.github/workflows/test_linux.yml +++ b/.github/workflows/test_linux.yml @@ -42,7 +42,7 @@ jobs: - name: Linux x86_64, openssl provider bazel-target: "test //score/... --config=x86_64-linux --//score/crypto/src/backend:score_crypto_pkcs11_backend_enabled=False" upload-name: "score_security_crypto linux x86_64 OpenSSL backend test results" - uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@66d165e6fcb7afcb1e0265eeb7b65cebbdcea016 + uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@ace627933d0924894a3d066254f25d099732612e with: bazel-target: ${{ matrix.bazel-target }} upload-name: ${{ matrix.upload-name }} diff --git a/score/cryptoki/tests/pkcs11_v3_integration.rs b/score/cryptoki/tests/pkcs11_v3_integration.rs index a07cd079a3..ed41b71160 100755 --- a/score/cryptoki/tests/pkcs11_v3_integration.rs +++ b/score/cryptoki/tests/pkcs11_v3_integration.rs @@ -28,6 +28,14 @@ use std::sync::Once; static INIT: Once = Once::new(); fn init() { INIT.call_once(|| unsafe { + let test_tmpdir = std::env::var_os("TEST_TMPDIR") + .map(std::path::PathBuf::from) + .unwrap_or_else(std::env::temp_dir); + std::env::set_var( + "CRYPTOKI_STORE", + test_tmpdir.join(format!("pkcs11_v3_integration_{}.json", std::process::id())), + ); + let fl = common::fn_list(); let rv = p11!(fl, C_Initialize, ptr::null_mut()); assert!(