Skip to content

Commit b6712f3

Browse files
openshift-cherrypick-robotNiranjan M.R
andauthored
use ROLE_WORKER_CNF environment variable to determine mcp name (#1290)
Instead of using hardcoded value of worker, use the mcp name from ROLE_WORKER_CNF environment variable Signed-off-by: Niranjan M.R <[email protected]> Co-authored-by: Niranjan M.R <[email protected]>
1 parent 60648dc commit b6712f3

File tree

1 file changed

+5
-4
lines changed
  • test/e2e/performanceprofile/functests/10_performance_ppc

1 file changed

+5
-4
lines changed

test/e2e/performanceprofile/functests/10_performance_ppc/ppc.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func PPCTestCreateUtil() *PPCTestIntegration {
6363

6464
var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform awareness", Label(string(label.PerformanceProfileCreator)), func() {
6565
mustgatherDir := testutils.MustGatherDir
66+
mcpName := testutils.RoleWorkerCNF
6667
ntoImage := testutils.NTOImage
6768
Context("PPC Sanity Tests", Label(string(label.Tier0)), func() {
6869
ppcIntgTest := PPCTestCreateUtil()
@@ -79,7 +80,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
7980
cmdArgs := []string{
8081
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
8182
ntoImage,
82-
"--mcp-name=worker",
83+
fmt.Sprintf("--mcp-name=%s", mcpName),
8384
fmt.Sprintf("--reserved-cpu-count=%d", reservedCpuCount),
8485
fmt.Sprintf("--rt-kernel=%t", true),
8586
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),
@@ -112,7 +113,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
112113
cmdArgs := []string{
113114
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
114115
ntoImage,
115-
"--mcp-name=worker",
116+
fmt.Sprintf("--mcp-name=%s", mcpName),
116117
fmt.Sprintf("--reserved-cpu-count=%d", 2),
117118
fmt.Sprintf("--rt-kernel=%t", true),
118119
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),
@@ -143,7 +144,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
143144
cmdArgs := []string{
144145
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
145146
ntoImage,
146-
"--mcp-name=worker",
147+
fmt.Sprintf("--mcp-name=%s", mcpName),
147148
fmt.Sprintf("--reserved-cpu-count=%d", 2),
148149
fmt.Sprintf("--rt-kernel=%t", true),
149150
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),
@@ -174,7 +175,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
174175
cmdArgs := []string{
175176
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
176177
ntoImage,
177-
"--mcp-name=worker",
178+
fmt.Sprintf("--mcp-name=%s", mcpName),
178179
fmt.Sprintf("--reserved-cpu-count=%d", 100),
179180
fmt.Sprintf("--rt-kernel=%t", true),
180181
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),

0 commit comments

Comments
 (0)