diff --git a/tests/containers_test.go b/tests/containers_test.go index 64a4337..cc5e73f 100644 --- a/tests/containers_test.go +++ b/tests/containers_test.go @@ -399,6 +399,10 @@ func TestEnvironment(t *testing.T) { if imageVariant == "pulumi" { expectedPath += ":/root/.pulumi/bin" } + // When running in bash, the UBI images include /root/.local/bin:/root/bin: + if isUBI(t) { + expectedPath = "/root/.local/bin:/root/bin:" + expectedPath + } requireOutputWithBash(t, expectedPath, "printenv", "PATH") })