@@ -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
@@ -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 "
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 <jkacur@redhat.com> --- rteval/modules/__init__.py | 5 +++++ rteval/modules/loads/stressng.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)