buildctl: add test for usage
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-18.09
parent
787af956e3
commit
a0d98d3e6b
|
@ -4,6 +4,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/moby/buildkit/util/testutil/integration"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestCLIIntegration(t *testing.T) {
|
||||
|
@ -13,5 +14,14 @@ func TestCLIIntegration(t *testing.T) {
|
|||
testBuildLocalExporter,
|
||||
testBuildContainerdExporter,
|
||||
testPrune,
|
||||
testUsage,
|
||||
})
|
||||
}
|
||||
|
||||
func testUsage(t *testing.T, sb integration.Sandbox) {
|
||||
t.Parallel()
|
||||
|
||||
require.NoError(t, sb.Cmd().Run())
|
||||
|
||||
require.NoError(t, sb.Cmd("--help").Run())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue