tests: Adjust 'guix pack -f squashfs' test.
authorLudovic Courtès <ludo@gnu.org>
Sat, 23 Mar 2019 23:10:51 +0000 (00:10 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 23 Mar 2019 23:13:53 +0000 (00:13 +0100)
This is a followup to 427c87d0bdc06cc3ee7fc220fd3ad36084412533.

* tests/pack.scm ("squashfs-image + localstatedir"): Expect "bin" to be
a relative symlink.

tests/pack.scm

index 40473a9..ea88cd8 100644 (file)
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
 ;;;
 ;;; This file is part of GNU Guix.
                                       (file-exists? "var/guix/db/db.sqlite")
                                       (string=? (string-append #$%bootstrap-guile "/bin")
                                                 (pk 'binlink (readlink bin)))
-                                      (string=? (string-append #$profile "/bin")
+
+                                      ;; This is a relative symlink target.
+                                      (string=? (string-drop
+                                                 (string-append #$profile "/bin")
+                                                 1)
                                                 (pk 'guilelink (readlink "bin"))))
                              (mkdir #$output))))))))
       (built-derivations (list check)))))