aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-system.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-08-15 08:48:09 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2022-08-15 17:03:07 +0300
commit88b90dd8326328503cdecfc0271f4be02fdc214b (patch)
treec67795935a53dd2655581c0afd9218a4251a448d /tests/pkg-system.testscript
parentd6d72bc6e4545d216d89660f86781bbc34980fe9 (diff)
Improve diagnostics for unknown system package
Diffstat (limited to 'tests/pkg-system.testscript')
-rw-r--r--tests/pkg-system.testscript26
1 files changed, 17 insertions, 9 deletions
diff --git a/tests/pkg-system.testscript b/tests/pkg-system.testscript
index e300afd..fc4f707 100644
--- a/tests/pkg-system.testscript
+++ b/tests/pkg-system.testscript
@@ -52,10 +52,9 @@ rep_remove += -d cfg 2>!
{
$clone_cfg;
- $pkg_build 'sys:libbar' 2>>/EOE != 0;
- error: unknown package libbar
- info: configuration cfg/ has no repositories
- info: use 'bpkg rep-add' to add a repository
+ $pkg_build 'sys:libbar' 2>>EOE != 0;
+ error: unknown package sys:libbar
+ info: consider specifying sys:libbar/*
EOE
$pkg_build 'sys:libbar/1' 2>>EOE;
@@ -851,7 +850,8 @@ rep_remove += -d cfg 2>!
EOE
$pkg_build 'sys:libbar' 2>>EOE != 0;
- error: unknown package libbar
+ error: unknown package sys:libbar
+ info: consider specifying sys:libbar/*
EOE
$pkg_build foo 'sys:libbar/1' 2>>EOE != 0;
@@ -899,10 +899,18 @@ rep_remove += -d cfg 2>!
# Fail as libbar while being selected is still unknown (not present in t3
# repo).
#
- $pkg_build 'sys:libbar' 2>'error: unknown package libbar' != 0;
- $pkg_build foo 'sys:libbar' 2>'error: unknown package libbar' != 0;
- $pkg_status foo 1>'!foo configured 2';
- $pkg_status libbar 1>'libbar configured,system !2';
+ $pkg_build 'sys:libbar' 2>>EOE != 0;
+ error: unknown package sys:libbar
+ info: consider specifying sys:libbar/*
+ EOE
+
+ $pkg_build foo 'sys:libbar' 2>>EOE != 0;
+ error: unknown package sys:libbar
+ info: consider specifying sys:libbar/*
+ EOE
+
+ $pkg_status foo 1>'!foo configured 2';
+ $pkg_status libbar 1>'libbar configured,system !2';
# Build foo and ?sys:libbar/3.
#