Skip to content

Commit eacd6ee

Browse files
openshift-cherrypick-robotNiranjan M.R
andauthored
use ROLE_WORKER_CNF environment variable to determine mcp name (#1292)
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 f8b086a commit eacd6ee

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
@@ -62,6 +62,7 @@ func PPCTestCreateUtil() *PPCTestIntegration {
6262

6363
var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform awareness", func() {
6464
mustgatherDir := testutils.MustGatherDir
65+
mcpName := testutils.RoleWorkerCNF
6566
ntoImage := testutils.NTOImage
6667
Context("PPC Sanity Tests", func() {
6768
ppcIntgTest := PPCTestCreateUtil()
@@ -78,7 +79,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
7879
cmdArgs := []string{
7980
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
8081
ntoImage,
81-
"--mcp-name=worker",
82+
fmt.Sprintf("--mcp-name=%s", mcpName),
8283
fmt.Sprintf("--reserved-cpu-count=%d", reservedCpuCount),
8384
fmt.Sprintf("--rt-kernel=%t", true),
8485
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),
@@ -111,7 +112,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
111112
cmdArgs := []string{
112113
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
113114
ntoImage,
114-
"--mcp-name=worker",
115+
fmt.Sprintf("--mcp-name=%s", mcpName),
115116
fmt.Sprintf("--reserved-cpu-count=%d", 2),
116117
fmt.Sprintf("--rt-kernel=%t", true),
117118
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),
@@ -142,7 +143,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
142143
cmdArgs := []string{
143144
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
144145
ntoImage,
145-
"--mcp-name=worker",
146+
fmt.Sprintf("--mcp-name=%s", mcpName),
146147
fmt.Sprintf("--reserved-cpu-count=%d", 2),
147148
fmt.Sprintf("--rt-kernel=%t", true),
148149
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),
@@ -173,7 +174,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
173174
cmdArgs := []string{
174175
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
175176
ntoImage,
176-
"--mcp-name=worker",
177+
fmt.Sprintf("--mcp-name=%s", mcpName),
177178
fmt.Sprintf("--reserved-cpu-count=%d", 100),
178179
fmt.Sprintf("--rt-kernel=%t", true),
179180
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),

0 commit comments

Comments
 (0)