Skip to content

Commit 4f3a215

Browse files
committed
cmd/cue: test the "found packages $X and $Y in $DIR" error message
We had this test case which covered the error case, but it did not actually lock in what the error message looks like For #3703. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ib9cec1969d43831e3ebe0c87de1f13497000fe29 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214887 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Matthew Sackman <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
1 parent 2597621 commit 4f3a215

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/cue/cmd/testdata/script/load_pkg.txtar

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ cmp stdout stdout-pkg
1616

1717
# don't allow mixing two differently named packages
1818
! exec cue eval kube.cue foo/kube2.cue
19+
cmpenv stderr different-packages.stderr
1920

2021
# When passing multiple CUE files in different directories,
2122
# cue/load will sort the filenames so that children come later.
@@ -33,6 +34,8 @@ cmp stdout stdout-sort
3334

3435
cd ..
3536

37+
-- different-packages.stderr --
38+
found packages "kube" (kube.cue) and "kube2" (kube2.cue) in "${WORK@R}"
3639
-- data.cue --
3740
foo:3
3841
-- t.cue --

0 commit comments

Comments
 (0)