From 7bf746b2373d8c103bd4081abadec67a3fa8036f Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Sun, 26 Oct 2025 00:27:51 +0300 Subject: [PATCH] test: Fix guest_env_test.go The test used `go:build iso` so it was not included in the integration tests. Change to `go:build integration` so we test in the CI. Rename the file and the test name to make it more clear that this test is about the iso image. Skip the test for non vm-driver, since this tests is about the iso image. We may need to add a similar test or adapt this test so it can be used also with the kicbase image. This test will be useful to validate #21800, avoiding regressions such as #21788. --- test/integration/{guest_env_test.go => iso_test.go} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename test/integration/{guest_env_test.go => iso_test.go} (92%) diff --git a/test/integration/guest_env_test.go b/test/integration/iso_test.go similarity index 92% rename from test/integration/guest_env_test.go rename to test/integration/iso_test.go index c5208b0a31..5494c8c407 100644 --- a/test/integration/guest_env_test.go +++ b/test/integration/iso_test.go @@ -1,4 +1,4 @@ -//go:build iso +//go:build integration /* Copyright 2016 The Kubernetes Authors All rights reserved. @@ -28,8 +28,12 @@ import ( "k8s.io/minikube/pkg/minikube/vmpath" ) -// TestGuestEnvironment verifies files and packages installed inside minikube ISO/Base image -func TestGuestEnvironment(t *testing.T) { +// TestISOImage verifies files and packages installed inside minikube ISO/Base image +func TestISOImage(t *testing.T) { + if !VMDriver() { + t.Skip("This test requires a VM driver") + } + MaybeParallel(t) profile := UniqueProfileName("guest")