ci: Make sure the Guix checkout is the one providing Cuirass proc.
authorClément Lassieur <clement@lassieur.org>
Sun, 17 Nov 2019 12:29:19 +0000 (13:29 +0100)
committerClément Lassieur <clement@lassieur.org>
Sun, 1 Dec 2019 10:26:11 +0000 (11:26 +0100)
commitf71b0a0012d46bd30ead1a14ed58fd59647415e2
treec5ab18f066db9d12255c325a5aed1998cab8f156
parentdb1106e2b5693aff5063b74d4a78eef3c0a4d900
ci: Make sure the Guix checkout is the one providing Cuirass proc.

Fixes <https://bugs.gnu.org/36378>.
Reported by Reza Alizadeh Majd <r.majd@pantherx.org>.

* build-aux/hydra/gnu-system.scm (find-current-checkout): New procedure.
(hydra-jobs): Use FIND-CURRENT-CHECKOUT to define CHECKOUT.  Pass it to the
inferior Guix as an extra argument whose key is 'superior-guix-checkout'.
* gnu/ci.scm (find-current-checkout): New procedure.
(hydra-jobs): Use FIND-CURRENT-CHECKOUT to define CHECKOUT.  This will return
'#f' if the current Guix is an inferior.  In that case, use the
'superior-guix-checkout' argument provided by the superior Guix.
build-aux/hydra/gnu-system.scm
gnu/ci.scm