diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-12-20 10:26:16 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-12-20 16:56:03 +0100 |
commit | 680970490c556ae0029aa1ba2b0faba162118186 (patch) | |
tree | 9b46aea3abb95c084fd177477090ff5ab0c8c74d /tests | |
parent | 7fb27b5441bf3d9884422cd93447737723124407 (diff) |
tests: Adjust 'guix package' test to latest package search metrics.
With commit bbcd06e56c06376e640a7ac81a7109e7135a20f2, 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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-package.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh index dedba2fd74..cc416ec6a1 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -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" |