From 4ecc587b9db0e20017aabc858467575fd889e54e Mon Sep 17 00:00:00 2001 From: Chris Keller Date: Sat, 11 Jun 2022 20:16:32 -0600 Subject: [PATCH] Skip integration tests in chroot --- integration/suite_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integration/suite_test.go b/integration/suite_test.go index 4dedaac..461594f 100644 --- a/integration/suite_test.go +++ b/integration/suite_test.go @@ -2,6 +2,7 @@ package integration import ( "net" + "os" "strconv" "testing" @@ -23,6 +24,10 @@ type integrationTestSuite struct { } func TestIntegrationSuite(t *testing.T) { + if os.Getenv("SCHROOT_SESSION_ID") != "" { + // TODO: fix these tests for chroot + t.Skip("These integration tests freeze when building in sbuild chroot") + } suite.Run(t, &integrationTestSuite{}) }