[PATCH 2/6] rteval: Fix stressng --taskset argument parsing
John Kacur <[email protected]> Thu, 23 Jul 2026 15:47:47 -0400
| Newsgroups | org.kernel.vger.linux-rt-users |
|---|---|
| Message-ID | <[email protected]> |
The --taskset option and its CPU list argument were being combined into
a single string argument ('--taskset 0,1,2'), but stress-ng expects them
as separate arguments ('--taskset', '0,1,2').
This caused stress-ng to fail to parse the --taskset option when a
cpulist was specified.
Fix by using extend() instead of append() to add both the option and its
value as separate list elements.
Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: John Kacur <[email protected]>
---
rteval/modules/loads/stressng.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rteval/modules/loads/stressng.py b/rteval/modules/loads/stressng.py
index 4ad7197fc590..387b5718a08f 100644
--- a/rteval/modules/loads/stressng.py
+++ b/rteval/modules/loads/stressng.py
@@ -82,7 +82,7 @@ class Stressng(CommandLineLoad):
if self.cpulist:
for node in nodes:
cpulist = ",".join([str(n) for n in cpus[node]])
- self.args.append(f'--taskset {cpulist}')
+ self.args.extend(['--taskset', cpulist])
def _WorkloadTask(self):
""" Kick of the workload here """
--
2.55.0