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'.
This commit is contained in:
Ludovic Courtès 2023-01-25 22:51:50 +01:00
parent 852908d24d
commit ebcb5c8e12
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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"