summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-06-04 23:16:42 +0200
committerLudovic Courtès <ludo@gnu.org>2026-06-18 16:46:52 +0200
commit50fb72597db3448c13c74f33f864b00c7da977fd (patch)
tree4d77b12dd0a5cea740760efd804a62910d181c99 /tests
parent4a58858d65089395f0e983f2711d0e67323caab6 (diff)
tests: Fix “appimage + localstatedir” test.
* tests/pack.scm ("appimage + localstatedir"): Create file “OUTPUT” and then copy it to #$output. Change-Id: I73be47a336e46c7099b940a02b13f8192145a185 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/pack.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/pack.scm b/tests/pack.scm
index 5422e156b90..66868ea3e61 100644
--- a/tests/pack.scm
+++ b/tests/pack.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2017-2021, 2023, 2024 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2017-2021, 2023-2024, 2026 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net> 3;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
4;;; Copyright © 2021, 2023, 2025 Maxim Cournoyer <maxim@guixotic.coop> 4;;; Copyright © 2021, 2023, 2025 Maxim Cournoyer <maxim@guixotic.coop>
5;;; Copyright © 2023 Oleg Pykhalov <go.wigust@gmail.com> 5;;; Copyright © 2023 Oleg Pykhalov <go.wigust@gmail.com>
@@ -386,12 +386,17 @@
386 (check (gexp->derivation 386 (check (gexp->derivation
387 "check-appimage-with-localstatedir" 387 "check-appimage-with-localstatedir"
388 #~(begin 388 #~(begin
389 ;; Create a file in $PWD and only then copy it to
390 ;; #$output, because #$output within the image's
391 ;; execution environment refers to its temporary store,
392 ;; not to the "real one".
389 (system* #$image "--appimage-extract-and-run" "-c" 393 (system* #$image "--appimage-extract-and-run" "-c"
390 (object->string 394 (object->string
391 `(call-with-output-file #$output 395 `(call-with-output-file "OUTPUT"
392 (lambda (port) 396 (lambda (port)
393 (display "Hello from Guile!\n" 397 (display "Hello from Guile!\n"
394 port))))) 398 port)))))
399 (copy-file "OUTPUT" #$output)
395 (system* #$image "--appimage-extract") 400 (system* #$image "--appimage-extract")
396 (exit (file-exists? "squashfs-root/var/guix/db/db.sqlite")))))) 401 (exit (file-exists? "squashfs-root/var/guix/db/db.sqlite"))))))
397 (mbegin %store-monad 402 (mbegin %store-monad