tests: Use the same source as ci.guix.gnu.org.
authorLudovic Courtès <ludo@gnu.org>
Sun, 22 Mar 2020 17:47:48 +0000 (18:47 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 22 Mar 2020 23:06:58 +0000 (00:06 +0100)
* etc/system-tests.scm (system-test-manifest): In 'local-file' call, use
a name that is a function of COMMIT to match what Cuirass does.

etc/system-tests.scm

index ab2827e..1085dee 100644 (file)
@@ -79,7 +79,11 @@ the 'TESTS' environment variable."
   ;; Intern SOURCE so that 'build-from-source' in (guix channels) sees
   ;; "fresh" file names and thus doesn't find itself loading .go files
   ;; from ~/.cache/guile when it loads 'build-aux/build-self.scm'.
-  (let* ((source (local-file source "guix-source"
+  (let* ((source (local-file source
+                             (if commit
+                                 (string-append "guix-"
+                                                (string-take commit 7))
+                                 "guix-source")
                              #:recursive? #t
                              #:select?
                              (or (git-predicate source)