From 2a697791d1a473c76973f135f3af9240a32ad668 Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Thu, 18 Oct 2018 11:59:35 -0700 Subject: Skip TestPythonHello on ptrace platform while we debug the issue. PiperOrigin-RevId: 217743078 Change-Id: I47fabd88139b968b6183bcc0340065fdbbc1d40d --- runsc/test/testutil/docker.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runsc/test/testutil') diff --git a/runsc/test/testutil/docker.go b/runsc/test/testutil/docker.go index 4e48817cf..7d6a72e5f 100644 --- a/runsc/test/testutil/docker.go +++ b/runsc/test/testutil/docker.go @@ -49,6 +49,15 @@ func IsPauseResumeSupported() bool { return !strings.Contains(getRuntime(), "hostnet") } +// IsPtracePlatform returns true if the runtime is using ptrace platform. +// +// TODO: Tests should not depend on the platform, but +// TestPythonHello sometimes hangs on ptrace. Once that is debugged, this +// method should go away. +func IsPtracePlatform() bool { + return !strings.Contains(getRuntime(), "kvm") +} + // EnsureSupportedDockerVersion checks if correct docker is installed. func EnsureSupportedDockerVersion() { cmd := exec.Command("docker", "version") -- cgit v1.2.3