mirror of
https://github.com/moby/buildkit.git
synced 2026-07-01 12:17:54 +00:00
This will allow clients to retrieve exit error codes returned during a solve without parsing the error messages. Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
17 lines
502 B
Go
17 lines
502 B
Go
package containerdexecutor
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/containerd/containerd"
|
|
gatewayapi "github.com/moby/buildkit/frontend/gateway/pb"
|
|
)
|
|
|
|
func TestContainerdUnknownExitStatus(t *testing.T) {
|
|
// There are assumptions in the containerd executor that the UnknownExitStatus
|
|
// used in errdefs.ExitError matches the variable in the containerd package.
|
|
if containerd.UnknownExitStatus != gatewayapi.UnknownExitStatus {
|
|
t.Fatalf("containerd.UnknownExitStatus != errdefs.UnknownExitStatus")
|
|
}
|
|
}
|