From ebd36883b235a45ee34ba1b1ed9a9c1686d4bbfc Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Wed, 15 Apr 2020 18:32:29 -0400 Subject: [PATCH] tests: Use 'cp -f' for copying over existing files (Travis issue) Use 'cp -f' to force-copy over existing files. This solves an issue seen only on Travis. Signed-off-by: Stefan Berger --- tests/_test_tpm2_derived_keys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_test_tpm2_derived_keys b/tests/_test_tpm2_derived_keys index 891ae792..9446f0f9 100755 --- a/tests/_test_tpm2_derived_keys +++ b/tests/_test_tpm2_derived_keys @@ -297,7 +297,7 @@ echo "Testing new CryptAdjustPrimeCandidate implementation" # copy all the state files; the files need libtpms (0.8.0) with # TPM 2.0 revsion 155; there the seeds are setup so that the fixed # RSA key generation algorithm is used -cp ${TESTDIR}/data/tpm2state4/* ${TPM_PATH} +cp -f ${TESTDIR}/data/tpm2state4/* ${TPM_PATH} run_swtpm ${SWTPM_INTERFACE} --tpm2