1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-23 09:35:56 +02:00

tests: foreign: Forcefully delete /bin/{wget,gpg}.

* gnu/tests/foreign.scm (run-foreign-install-test)[build]: Attempt to
delete /bin/{wget,gpg} before recreating them.

Change-Id: I5260cae7f706ce9a492a86b1859591c8446e04a3
This commit is contained in:
Ludovic Courtès
2025-07-14 18:38:51 +02:00
parent 08c23d2c13
commit 9596822a6c
+6 -1
View File
@@ -218,9 +218,14 @@ GNU/Linux distro, and check that the installation is functional."
(test-assert "install fake dependencies"
;; The installation script insists on checking for the
;; availability of 'wget' and 'gpg' but does not actually use them
;; when 'GUIX_BINARY_FILE_NAME' is set. Provide fake binaries.
;; when 'GUIX_BINARY_FILE_NAME' is set. Provide fake binaries
;; that always succeed.
(marionette-eval '(begin
(false-if-exception
(delete-file "/bin/wget"))
(symlink "/bin/true" "/bin/wget")
(false-if-exception
(delete-file "/bin/gpg"))
(symlink "/bin/true" "/bin/gpg")
#t)
marionette))