Retry quiet check keys

Change the 'check_keys' function to try three times. Some intermittent
kasp test failures are because we are inspecting the key files
before the actual change has happen. The 'retry_quiet' approach allows
for a bit more time to let the write operation finish.

(cherry picked from commit d5531df7)
77 jobs for !4829 with matthijs-test-keymgr2kasp-v9_16 in 19 minutes and 30 seconds (queued for 11 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #1589249
amd64 linux
autoreconf

00:00:17

passed #1589251
amd64 linux
clang-format

00:00:19

passed #1589252
amd64 linux
coccinelle

00:03:41

failed #1589253
amd64 linux
danger

00:01:31

passed #1589250
amd64 linux
misc

00:00:19

 
  Build
passed #1589266
amd64 linux
clang:asan

00:04:17

passed #1589270
amd64 linux
clang:buster:amd64

00:02:07

passed #1589273
amd64 libvirt
clang:freebsd11:amd64

00:02:03

passed #1589274
amd64 libvirt
clang:freebsd12:amd64

00:01:55

passed #1589275
amd64 libvirt
clang:openbsd:amd64

00:04:15

passed #1589268
amd64 linux
clang:tsan

00:02:38

passed #1589254
amd64 linux
gcc:alpine3.13:amd64

00:02:01

passed #1589265
amd64 linux
gcc:asan

00:03:41

passed #1589258
amd64 linux
gcc:buster:amd64

00:01:32

passed #1589255
amd64 linux
gcc:centos7:amd64

00:01:36

passed #1589256
amd64 linux
gcc:centos8:amd64

00:01:46

passed #1589264
amd64 linux
gcc:focal:amd64

00:01:51

passed #1589269
amd64 linux
gcc:mutexatomics

00:01:49

passed #1589260
amd64 linux
gcc:out-of-tree

00:01:36

passed #1589259
amd64 linux
gcc:sid:amd64

00:02:10

passed #1589261
i386 linux
gcc:sid:i386

00:01:52

passed #1589271
amd64 linux
gcc:softhsm2.4

00:01:47

passed #1589272
amd64 linux
gcc:softhsm2.6

00:01:48

passed #1589257
amd64 linux
gcc:stretch:amd64

00:02:06

passed #1589267
amd64 linux
gcc:tsan

00:02:09

passed #1589262
amd64 linux
gcc:tumbleweed:amd64

00:01:51

passed #1589263
amd64 linux
gcc:xenial:amd64

00:01:55

passed #1589277
amd64 windows
msvc:windows:amd64

00:00:59

passed #1589276
amd64 linux
nolibtool:sid:amd64

00:02:09

 
  Unit
passed #1589289
amd64 linux
unit:clang:asan

00:01:18

passed #1589293
amd64 linux
unit:clang:buster:amd64

00:00:36

passed #1589296
amd64 libvirt
unit:clang:freebsd11:amd64

00:01:05

passed #1589297
amd64 libvirt
unit:clang:freebsd12:amd64

00:01:02

passed #1589291
amd64 linux
unit:clang:tsan

00:01:32

passed #1589278
amd64 linux
unit:gcc:alpine3.13:amd64

00:00:54

passed #1589288
amd64 linux
unit:gcc:asan

00:01:16

passed #1589282
amd64 linux
unit:gcc:buster:amd64

00:01:01

passed #1589279
amd64 linux
unit:gcc:centos7:amd64

00:00:38

passed #1589280
amd64 linux
unit:gcc:centos8:amd64

00:00:42

passed #1589287
amd64 linux
unit:gcc:focal:amd64

00:00:41

passed #1589292
amd64 linux
unit:gcc:mutexatomics

00:00:38

passed #1589283
amd64 linux
unit:gcc:sid:amd64

00:00:36

passed #1589284
i386 linux
unit:gcc:sid:i386

00:00:44

passed #1589294
amd64 linux
unit:gcc:softhsm2.4

00:00:38

passed #1589295
amd64 linux
unit:gcc:softhsm2.6

00:00:39

passed #1589281
amd64 linux
unit:gcc:stretch:amd64

00:00:37

passed #1589290
amd64 linux
unit:gcc:tsan

00:01:48

passed #1589285
amd64 linux
unit:gcc:tumbleweed:amd64

00:00:43

passed #1589286
amd64 linux
unit:gcc:xenial:amd64

00:00:44

passed #1589298
amd64 linux
unit:nolibtool:sid:amd64

00:00:57

 
  System
passed #1589310
amd64 linux
system:clang:asan

00:13:29

passed #1589314
amd64 linux
system:clang:buster:amd64

00:12:07

passed #1589317
amd64 libvirt
system:clang:freebsd11:amd64

00:11:24

passed #1589318
amd64 libvirt
system:clang:freebsd12:amd64

00:11:04

passed #1589312
amd64 linux
system:clang:tsan

00:15:30

passed #1589299
amd64 linux
system:gcc:alpine3.13:amd64

00:12:20

passed #1589309
amd64 linux
system:gcc:asan

00:13:51

passed #1589303
amd64 linux
system:gcc:buster:amd64

00:13:01

passed #1589300
amd64 linux
system:gcc:centos7:amd64

00:11:52

passed #1589301
amd64 linux
system:gcc:centos8:amd64

00:11:56

failed #1589308
amd64 linux
system:gcc:focal:amd64

00:12:25

passed #1589313
amd64 linux
system:gcc:mutexatomics

00:12:06

failed #1589304
amd64 linux
system:gcc:sid:amd64

00:12:11

passed #1589305
i386 linux
system:gcc:sid:i386

00:10:01

passed #1589315
amd64 linux
system:gcc:softhsm2.4

00:11:54

passed #1589316
amd64 linux
system:gcc:softhsm2.6

00:12:17

passed #1589302
amd64 linux
system:gcc:stretch:amd64

00:12:01

passed #1589311
amd64 linux
system:gcc:tsan

00:16:18

passed #1589306
amd64 linux
system:gcc:tumbleweed:amd64

00:12:10

passed #1589307
amd64 linux
system:gcc:xenial:amd64

00:10:53

failed #1589319
amd64 linux
system:nolibtool:sid:amd64

00:12:06

 
  Docs
passed #1589320
amd64 linux
docs

00:02:35

 
  Postcheck
passed #1589324
amd64 linux
cppcheck

00:00:24

passed #1589321
amd64 linux
flake8

00:00:24

passed #1589325
amd64 linux
gcov

00:00:34

75.0%
passed #1589322
amd64 linux
pylint

00:00:28

passed #1589323
amd64 linux
scan-build

00:10:31

 
Name Stage Failure
failed
system:gcc:focal:amd64 System
I:The following system tests failed:
I: kasp
make: *** [Makefile:489: test] Error 1
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 4552 files

Uploading artifacts as "archive" to coordinator... ok
id=1589308 responseStatus=201 Created token=RCB_na9J
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:nolibtool:sid:amd64 System
I:The following system tests failed:
I: serve-stale
make: *** [Makefile:489: test] Error 1
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1065 files

Uploading artifacts as "archive" to coordinator... ok
id=1589319 responseStatus=201 Created token=8UxQoyBm
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:sid:amd64 System
I:The following system tests failed:
I: keymgr2kasp
make: *** [Makefile:489: test] Error 1
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 2057 files

Uploading artifacts as "archive" to coordinator... ok
id=1589304 responseStatus=201 Created token=ayhwEg47
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
danger Precheck
    at new Promise (<anonymous>)
at __awaiter (/usr/lib/node_modules/danger/distribution/runner/Executor.js:3:12)
at Executor.handleResults (/usr/lib/node_modules/danger/distribution/runner/Executor.js:134:16)
at Object.<anonymous> (/usr/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:161:47)
at step (/usr/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:43:23)
at Object.next (/usr/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:24:53)

Cleaning up file based variables
ERROR: Job failed: exit code 1