From 88b90dd8326328503cdecfc0271f4be02fdc214b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Aug 2022 08:48:09 +0200 Subject: Improve diagnostics for unknown system package --- tests/pkg-build.testscript | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/pkg-build.testscript') diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript index 6a33757..198e319 100644 --- a/tests/pkg-build.testscript +++ b/tests/pkg-build.testscript @@ -2175,7 +2175,10 @@ test.options += --no-progress $rep_fetch $rep/t0c; $* '?libbux' 2>'error: unknown package libbux' != 0; - $* '?sys:libbux' 2>'error: unknown package sys:libbux' != 0; + $* '?sys:libbux' 2>>EOE != 0; + error: unknown package sys:libbux + info: consider specifying sys:libbux/* + EOE $* '?libbar/1.3' 2>'error: unknown package libbar/1.3' != 0; $* '?libbar[5 7]' 2>"error: unknown package 'libbar [5 7]'" != 0 } @@ -2242,7 +2245,10 @@ test.options += --no-progress %.+ EOE - $* libfoo '?sys:libhello' 2>'error: unknown package sys:libhello' != 0; + $* libfoo '?sys:libhello' 2>>EOE != 0; + error: unknown package sys:libhello + info: consider specifying sys:libhello/* + EOE $* "sys:libhello/2.0@$rep/t0a" --trust-yes 2>>~%EOE% != 0; %.+ -- cgit v1.1