rteval: stress-ng: Use inherited method to set exclusive module
PATCH 1/1 rteval: stress-ng: Use inherited method to set exclusive module
Add the method set_exclusive() in the rtevalModuleProtype and use it in stress-ng instead of setting the variable directly
Signed-off-by John Kacur <[email protected]>
--- rteval/modules/__init__.py | 5 +++++ rteval/modules/loads/stressng.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
rteval/modules/__init__.py +5 -0
@@ -62,6 +62,11 @@ class rtevalModulePrototype(threading.Thread): return self._exclusive + def set_exclusive(self): + """ Sets This module to run alone """ + self._exclusive = True + + def set_donotrun(self): """ set a module's donotrun field to True """ self._donotrun = True
rteval/modules/loads/stressng.py +1 -1
@@ -31,7 +31,7 @@ class Stressng(CommandLineLoad): else: self._donotrun = True # When this module runs, other load modules should not - self._exclusive = True + self.set_exclusive() def _WorkloadSetup(self): " Since there is nothing to build, we don't need to do anything here "
Signature · 1 line
2.44.0