From 2317f26924803f40d4874d118c3fce7fa992480f Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Mon, 16 Dec 2024 18:30:30 +0100 Subject: [PATCH] Add /root/.local/bin:/root/bin: to UBI Bash Path --- tests/containers_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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") })