Blame SOURCES/0008-Log-test-failures-of-bad-pin.patch

d4b2f2
From e93ecadec7c868f4227e084ffb65c70a6efd7314 Mon Sep 17 00:00:00 2001
d4b2f2
From: Rob Crittenden <rcritten@redhat.com>
d4b2f2
Date: Tue, 4 Sep 2018 18:12:18 -0400
d4b2f2
Subject: [PATCH 6/7] Log test failures of bad pin
d4b2f2
d4b2f2
Previously this would show a "don't know why" failure.
d4b2f2
---
d4b2f2
 tests/tools/certsave.c | 5 +++++
d4b2f2
 1 file changed, 5 insertions(+)
d4b2f2
d4b2f2
diff --git a/tests/tools/certsave.c b/tests/tools/certsave.c
d4b2f2
index ac0f73ec..fd86a4c1 100644
d4b2f2
--- a/tests/tools/certsave.c
d4b2f2
+++ b/tests/tools/certsave.c
d4b2f2
@@ -106,6 +106,11 @@ main(int argc, char **argv)
d4b2f2
 				printf("Failed to save (%s:%s), "
d4b2f2
 				       "filesystem permissions error.\n",
d4b2f2
 				       ctype, entry->cm_cert_storage_location);
d4b2f2
+			} else
d4b2f2
+			if (cm_certsave_pin_error(state) == 0) {
d4b2f2
+				printf("Failed to save (%s:%s), "
d4b2f2
+				       "pin error.\n",
d4b2f2
+				       ctype, entry->cm_cert_storage_location);
d4b2f2
 			} else {
d4b2f2
 				printf("Failed to save (%s:%s), "
d4b2f2
 				       "don't know why.\n",
d4b2f2
-- 
d4b2f2
2.14.4
d4b2f2