mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Re-enable TestPythonHello now that ptrace seccomp issue is resolved.
PiperOrigin-RevId: 218636184 Change-Id: I44deac3f32276d06955c5fb1e28c5970bb08f5fd
This commit is contained in:
committed by
Shentubot
parent
e7191f058f
commit
a5fe397cf8
@@ -192,12 +192,6 @@ func TestMysql(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPythonHello(t *testing.T) {
|
||||
// TODO: This test occasionally hangs on the ptrace
|
||||
// platform. Re-enable it once we have this issue fixed.
|
||||
if testutil.IsPtracePlatform() {
|
||||
t.Skipf("Skipping PythonHello test on ptrace platform")
|
||||
}
|
||||
|
||||
if err := testutil.Pull("google/python-hello"); err != nil {
|
||||
t.Fatalf("docker pull failed: %v", err)
|
||||
}
|
||||
|
||||
@@ -49,15 +49,6 @@ 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")
|
||||
|
||||
Reference in New Issue
Block a user