import: Use a 'file://' URL in 'alist->package' test.
authorLudovic Courtès <ludo@gnu.org>
Fri, 6 Oct 2017 12:15:34 +0000 (14:15 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 6 Oct 2017 12:16:24 +0000 (14:16 +0200)
* tests/import-utils.scm ("alist->package with simple source"): Use a
'file://' URL.

tests/import-utils.scm

index 3d8d2c6..f4bbd33 100644 (file)
 (test-assert "alist->package with simple source"
   (let* ((meta '(("name" . "hello")
                  ("version" . "2.10")
-                 ("source" . "mirror://gnu/hello/hello-2.10.tar.gz")
+                 ("source" .
+                  ;; Use a 'file://' URI so that we don't cause a download.
+                  ,(string-append "file://"
+                                  (search-path %load-path "guix.scm")))
                  ("build-system" . "gnu")
                  ("home-page" . "https://gnu.org")
                  ("synopsis" . "Say hi")