From af0ae880a1811c86e85cac4c1f4b4a9af7971952 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Wed, 12 Jan 2022 16:35:34 +0100 Subject: [PATCH] fix(ci): Fix valgrind crypto test. --- ci/build.yml | 4 ++++ ci/test.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/build.yml b/ci/build.yml index aa90802992..c3f710e6f7 100644 --- a/ci/build.yml +++ b/ci/build.yml @@ -276,13 +276,17 @@ crypto build: - ci/**/* - crypto/**/* script: + - cp -r crypto crypto_noasan - nix-shell --run "poetry run make -C crypto" + - nix-shell --run "export ADDRESS_SANITIZER=0; poetry run make -C crypto_noasan" + - mv crypto_noasan/tests/test_check crypto/tests/test_check_noasan artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" paths: - crypto/tests/aestst - crypto/tests/libtrezor-crypto.so - crypto/tests/test_check + - crypto/tests/test_check_noasan - crypto/tests/test_openssl expire_in: 1 week diff --git a/ci/test.yml b/ci/test.yml index 7408beeff2..45337e60d0 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -394,7 +394,7 @@ crypto test: - ./crypto/tests/test_check - ./crypto/tests/test_openssl 1000 - nix-shell --run "cd crypto && ITERS=10 poetry run pytest --junitxml=tests/junit.xml tests | ts -s" - - nix-shell --run "CK_TIMEOUT_MULTIPLIER=20 valgrind -q --error-exitcode=1 ./crypto/tests/test_check | ts -s" + - nix-shell --run "CK_TIMEOUT_MULTIPLIER=20 valgrind -q --error-exitcode=1 ./crypto/tests/test_check_noasan | ts -s" artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" paths: