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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user