guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: tests: Do not try to create "$HOME/.config".


From: guix-commits
Subject: 02/02: tests: Do not try to create "$HOME/.config".
Date: Wed, 25 Jan 2023 16:54:31 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit ebcb5c8e120b39a3dd07c27bc17d520ee653ec23
Author: Ludovic Court├Ęs <ludo@gnu.org>
AuthorDate: Wed Jan 25 22:51:50 2023 +0100

    tests: Do not try to create "$HOME/.config".
    
    Previously this test would fail when HOME=/homeless-shelter and said
    directory cannot be created.
    
    * tests/guix-refresh.sh: Pass '--keyring' together with '-u'.
---
 tests/guix-refresh.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/guix-refresh.sh b/tests/guix-refresh.sh
index d9f13bac3a..c5214e1d6e 100644
--- a/tests/guix-refresh.sh
+++ b/tests/guix-refresh.sh
@@ -94,7 +94,8 @@ cat > "$module_dir/sample.scm"<<EOF
                 "086vqwk2wl8zfs47sq2xpjc9k066ilmb8z6dn0q6ymwjzlm196cd"))))))
 EOF
 guix refresh -t test -L "$module_dir" the-test-package
-guix refresh -t test -L "$module_dir" the-test-package -u
+guix refresh -t test -L "$module_dir" the-test-package -u \
+     --keyring="$module_dir/keyring.kbx"  # so we don't create $HOME/.config
 grep 'version "5.5"' "$module_dir/sample.scm"
 grep "$(guix hash -H sha256 -f nix-base32 "$module_dir/source")" 
"$module_dir/sample.scm"
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]