|
|
|
|
@ -17,6 +17,7 @@ func TestBuildOnlyFileCommaFlags(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args := []string{
|
|
|
|
|
"-parallel=false",
|
|
|
|
|
"-only=chocolate,vanilla",
|
|
|
|
|
filepath.Join(testFixture("build-only"), "template.json"),
|
|
|
|
|
}
|
|
|
|
|
@ -58,7 +59,7 @@ func TestBuildStdin(t *testing.T) {
|
|
|
|
|
defer func() { os.Stdin = stdin }()
|
|
|
|
|
|
|
|
|
|
defer cleanup()
|
|
|
|
|
if code := c.Run([]string{"-"}); code != 0 {
|
|
|
|
|
if code := c.Run([]string{"-parallel=false", "-"}); code != 0 {
|
|
|
|
|
fatalCommand(t, c.Meta)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -76,6 +77,7 @@ func TestBuildOnlyFileMultipleFlags(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args := []string{
|
|
|
|
|
"-parallel=false",
|
|
|
|
|
"-only=chocolate",
|
|
|
|
|
"-only=cherry",
|
|
|
|
|
"-only=apple", // ignored
|
|
|
|
|
@ -109,6 +111,7 @@ func TestBuildEverything(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args := []string{
|
|
|
|
|
"-parallel=false",
|
|
|
|
|
`-except=`,
|
|
|
|
|
filepath.Join(testFixture("build-only"), "template.json"),
|
|
|
|
|
}
|
|
|
|
|
@ -133,6 +136,7 @@ func TestBuildExceptFileCommaFlags(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
args := []string{
|
|
|
|
|
"-parallel=false",
|
|
|
|
|
"-except=chocolate,vanilla",
|
|
|
|
|
filepath.Join(testFixture("build-only"), "template.json"),
|
|
|
|
|
}
|
|
|
|
|
|