Update integration test to exclude yubikeys from importing/exporting non-root

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
Riyaz Faizullabhoy 2016-02-16 17:10:28 -08:00
parent 9010989a20
commit 36c33e6732
1 changed files with 4 additions and 0 deletions

View File

@ -1087,6 +1087,10 @@ func getKeySubdir(role, gun string) string {
// Tests importing and exporting keys for all different roles and GUNs
func TestClientKeyImportExportAllRoles(t *testing.T) {
if rootOnHardware() {
t.Log("Cannot import or export a non-root key from hardware. Will skip test.")
return
}
// -- setup --
setUp(t)