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.
parent
7fb27b5441
commit
680970490c
|
@ -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"
|
||||
|
||||
|
|
Reference in New Issue