me
/
guix
Archived
1
0
Fork 0

tests: Adjust 'guix package' test to latest package search metrics.

With commit bbcd06e56c, the command
"guix package -s '^fileutils$'" would match the 'ocaml-fileutils'
package, because its 'package-upstream-name*' is "fileutils".  Work
around it.

Reported by Vagrant Cascadian.

* tests/guix-package.sh: Change "fileutils" example to use a different
package name.
Ludovic Courtès 2022-12-20 10:26:16 +01:00
parent 7fb27b5441
commit 680970490c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

@ -149,11 +149,11 @@ cat > "$module_dir/foo.scm"<<EOF
#:use-module (gnu packages base))
(define-public deprecated
(deprecated-package "fileutils" coreutils))
(deprecated-package "fileutils-is-the-old-name" coreutils))
EOF
guix build -L "$module_dir" -e '(@ (foo) deprecated)' -n
test "`guix package -L "$module_dir" -s ^fileutils$ | grep ^name:`" = ""
test "`guix package -L "$module_dir" -s ^fileutils-is-the-old-name$ | grep ^name:`" = ""
rm -rf "$module_dir"