diff --git a/cmd/notary/integration_test.go b/cmd/notary/integration_test.go index 261c33d512..4dd873627e 100644 --- a/cmd/notary/integration_test.go +++ b/cmd/notary/integration_test.go @@ -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)