Fix container build --all. #215.

We didn't need to add an arg check here because it's already there.
This commit is contained in:
MatthewHink
2022-01-27 15:30:36 -05:00
parent bc24cb65e3
commit cf090823a3
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
package build
import (
"testing"
)
// TestArgsContainerBuild is a regression test for 215.
func TestArgsContainerBuild(t *testing.T) {
command := GetCommand()
err := command.Args(command, []string{})
if err != nil {
t.Errorf("no arguments to container build should succeed.")
}
err = command.Args(command, []string{"container1", "container2"})
if err != nil {
t.Errorf("multiple arguments to container build should succeed.")
}
}