From c294cabe13f28a94cb82a8c63b2e30bdfdd1aecb Mon Sep 17 00:00:00 2001 From: Samsondeen Dare Date: Wed, 9 Jul 2025 14:42:17 +0200 Subject: [PATCH] Skip query e2e test when we cannot build at runtime --- internal/command/e2etest/terraform_query_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/command/e2etest/terraform_query_test.go b/internal/command/e2etest/terraform_query_test.go index 4004306131..77746822a2 100644 --- a/internal/command/e2etest/terraform_query_test.go +++ b/internal/command/e2etest/terraform_query_test.go @@ -25,6 +25,15 @@ import ( ) func TestUnmanagedQuery(t *testing.T) { + if !canRunGoBuild { + // We're running in a separate-build-then-run context, so we can't + // currently execute this test which depends on being able to build + // new executable at runtime. + // + // (See the comment on canRunGoBuild's declaration for more information.) + t.Skip("can't run without building a new provider executable") + } + t.Parallel() tests := []struct {