guix-commits
[Top][All Lists]
Advanced

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

01/06: tests: Adjust 'guix package' test to latest package search metric


From: guix-commits
Subject: 01/06: tests: Adjust 'guix package' test to latest package search metrics.
Date: Tue, 20 Dec 2022 11:13:24 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 680970490c556ae0029aa1ba2b0faba162118186
Author: Ludovic Court├Ęs <ludo@gnu.org>
AuthorDate: Tue Dec 20 10:26:16 2022 +0100

    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.
---
 tests/guix-package.sh | 4 ++--
 1 file 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"
 



reply via email to

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