aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-07-14 10:55:01 +0000
committerJustus Winter <[email protected]>2017-07-14 10:55:01 +0000
commit7a6e6ad2880bbff54a75ff608d0ec97d6c405733 (patch)
tree5d78b7548b9e26923dd29d6a41cb394d0c1cc63e /tests/gpgscm
parentgpg: Fix importing keys. (diff)
downloadgnupg-7a6e6ad2880bbff54a75ff608d0ec97d6c405733.tar.gz
gnupg-7a6e6ad2880bbff54a75ff608d0ec97d6c405733.zip
gpgscm: Fail early if the test setup fails.
* tests/gpgscm/tests.scm (make-environment-cache): Check status code of setup script. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm')
-rw-r--r--tests/gpgscm/tests.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
index a6772d1ab..06084dea9 100644
--- a/tests/gpgscm/tests.scm
+++ b/tests/gpgscm/tests.scm
@@ -838,6 +838,8 @@
(let ((tarball (make-temporary-file "environment-cache")))
(atexit (lambda () (remove-temporary-file tarball)))
(setup::run-sync '--create-tarball tarball)
+ (if (not (equal? 'PASS (setup::status)))
+ (fail "Setup failed."))
`(--unpack-tarball ,tarball)))))
;; Command line flag handling. Returns the elements following KEY in