Skip to content

Commit 654909d

Browse files
mrniranjanNiranjan M.R
andauthored
use ROLE_WORKER_CNF environment variable to determine mcp name (#1261)
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 4c5b2d2 commit 654909d

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"),
@@ -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"),
@@ -172,7 +173,7 @@ var _ = Describe("[rfe_id: 38968] PerformanceProfile setup helper and platform a
172173
cmdArgs := []string{
173174
fmt.Sprintf("%s:%s:z", mustgatherDir, mustgatherDir),
174175
ntoImage,
175-
"--mcp-name=worker",
176+
fmt.Sprintf("--mcp-name=%s", mcpName),
176177
fmt.Sprintf("--reserved-cpu-count=%d", 100),
177178
fmt.Sprintf("--rt-kernel=%t", true),
178179
fmt.Sprintf("--power-consumption-mode=%s", "low-latency"),

0 commit comments

Comments
 (0)