]> git.proxmox.com Git - swtpm.git/commit - .travis.yml
Make softhsm/pkcs11 test case work on Travis on OS X
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 23 Jan 2019 17:56:13 +0000 (12:56 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 23 Jan 2019 20:42:52 +0000 (15:42 -0500)
commit02b7d5da103954957450f6407e3f280068af6b06
tree3ea0407df57f5e63c9ad07b8e2ab2e0c7a1a2002
parentb5e7e2a41f5e1b242646bdfc006e72d9097bd671
Make softhsm/pkcs11 test case work on Travis on OS X

We need to run the softhsm/pkcs11 test case as root (sudo) under OS X
so that we can write the file /etc/gnutls/pkcs11.conf. However, once
we run the tests as root we cannot run the 'brew ls' command anymore
since it refuses to run with high privileges. So, if we run as root we
need to use sudo to switch to the nobody user to run the 'brew ls'
command that gives us the name of the softhsm pkcs11 module.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
.travis.yml
tests/softhsm_setup