@@ -16,39 +16,34 @@ func TestFixtureLoadWorkspace(t *testing.T) {
1616 {
1717 Name : "single workspace packages" ,
1818 T : t ,
19- Args : []string {"collect" , "-w" , "fixtures/nested-ws/wsa" },
19+ Args : []string {"collect" },
2020 NoNestedWorkspace : true ,
2121 ExitCode : 0 ,
2222 StdoutSub : "pkg1:app" ,
23+ FixturePath : "fixtures/load-workspace.yaml" ,
2324 },
2425 {
2526 Name : "workspace components" ,
2627 T : t ,
27- Args : []string {"collect" , "-w" , "fixtures/nested-ws/wsa" , " components" },
28+ Args : []string {"collect" , "components" },
2829 NoNestedWorkspace : true ,
2930 ExitCode : 0 ,
30- StdoutSub : "//\n pkg0\n pkg1" ,
31- },
32- {
33- Name : "ignore nested workspaces" ,
34- T : t ,
35- Args : []string {"collect" , "-w" , "fixtures/nested-ws" , "components" },
36- NoNestedWorkspace : true ,
37- ExitCode : 1 ,
38- StderrSub : "pkg0:app: package \\ \" wsa/pkg0:app\\ \" is unknown" ,
31+ StdoutSub : "deeper/pkg0\n wsa\n wsa/pkg0\n wsa/pkg1" ,
32+ FixturePath : "fixtures/load-workspace.yaml" ,
3933 },
4034 {
4135 Name : "environment manifest" ,
4236 T : t ,
43- Args : []string {"describe" , "-w" , "fixtures/nested-ws/wsa" , " environment-manifest" },
37+ Args : []string {"describe" , "environment-manifest" },
4438 Eval : func (t * testing.T , stdout , stderr string ) {
4539 for _ , k := range []string {"os" , "arch" , "foobar" } {
4640 if ! strings .Contains (stdout , fmt .Sprintf ("%s: " , k )) {
4741 t .Errorf ("missing %s entry in environment manifest" , k )
4842 }
4943 }
5044 },
51- ExitCode : 0 ,
45+ ExitCode : 0 ,
46+ FixturePath : "fixtures/load-workspace.yaml" ,
5247 },
5348 }
5449
0 commit comments