[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/19: tests: Relax two tests that expected a non-zero error code.
From: |
guix-commits |
Subject: |
13/19: tests: Relax two tests that expected a non-zero error code. |
Date: |
Fri, 21 Apr 2023 11:16:10 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 61a6b05850f99dcff65c83585c97604466d4ecf3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Apr 21 16:55:29 2023 +0200
tests: Relax two tests that expected a non-zero error code.
* tests/guix-package-aliases.sh: "guix upgrade foo bar" has always
returned zero; adjust accordingly.
* tests/guix-refresh.sh: "guix refresh -t test idutils" and similar
return zero; adjust accordingly.
---
tests/guix-package-aliases.sh | 2 +-
tests/guix-refresh.sh | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/guix-package-aliases.sh b/tests/guix-package-aliases.sh
index f68d24b9a7..4011584078 100644
--- a/tests/guix-package-aliases.sh
+++ b/tests/guix-package-aliases.sh
@@ -48,7 +48,7 @@ grep "libreoffice=inkscape" "$profile/manifest"
guix upgrade --version
guix upgrade -n
guix upgrade gui.e -n
-guix upgrade foo bar -n && false
+guix upgrade foo bar -n
guix remove --version
guix remove --bootstrap guile-bootstrap -p "$profile"
diff --git a/tests/guix-refresh.sh b/tests/guix-refresh.sh
index 1167703b74..691020b031 100644
--- a/tests/guix-refresh.sh
+++ b/tests/guix-refresh.sh
@@ -37,12 +37,12 @@ GUIX_TEST_UPDATER_TARGETS='
("the-test-package" "" (("5.5" "file://'$PWD/$module_dir'/source"))))'
# No newer version available.
-guix refresh -t test idutils && false
+guix refresh -t test idutils # XXX: should return non-zero?
case "$(guix refresh -t test idutils 2>&1)" in
*"$idutils_version"*"already the latest version"*) true;;
*) false;;
esac
-guix refresh -t test libreoffice && false
+guix refresh -t test libreoffice # XXX: should return non-zero?
case "$(guix refresh -t test libreoffice 2>&1)" in
*"greater than the latest known version"*"1.0"*) true;;
*) false;;
@@ -100,7 +100,7 @@ grep 'version "5.5"' "$module_dir/sample.scm"
grep "$(guix hash -H sha256 -f nix-base32 "$module_dir/source")"
"$module_dir/sample.scm"
# Specifying a target version.
-guix refresh -t test guile=2.0.0 && false
+guix refresh -t test guile=2.0.0 # XXX: should return non-zero?
case "$(guix refresh -t test guile=2.0.0 2>&1)" in
*"failed to find"*"2.0.0"*) true;;
*) false;;
- 15/19: gnu: kicad: Update to 7.0.2., (continued)
- 15/19: gnu: kicad: Update to 7.0.2., guix-commits, 2023/04/21
- 16/19: gnu: Add emacs-gerbil-mode., guix-commits, 2023/04/21
- 02/19: services: postgresql: Add 'configuration' action., guix-commits, 2023/04/21
- 03/19: services: mysql: Add 'configuration' action., guix-commits, 2023/04/21
- 04/19: services: redis: Add 'configuration' action., guix-commits, 2023/04/21
- 08/19: services: nscd: Depend on syslogd., guix-commits, 2023/04/21
- 12/19: tests: Fix checks for expected failures., guix-commits, 2023/04/21
- 17/19: gnu: guile-dsv: Update to 0.5.2., guix-commits, 2023/04/21
- 18/19: home: services: openssh: Add configuration option for jump proxies, guix-commits, 2023/04/21
- 05/19: services: rsync: Add 'configuration' action., guix-commits, 2023/04/21
- 13/19: tests: Relax two tests that expected a non-zero error code.,
guix-commits <=
- 19/19: doc: Update openssh-host documentation., guix-commits, 2023/04/21