aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-01-31 13:40:45 +0100
committerDavid Sommerseth <davids@redhat.com>2013-01-31 13:43:41 +0100
commit9783d4ddae52dff0257259e42439d21377572b18 (patch)
treeeb732520ad82afb3057177b69bfa4bf81f85fa54
parent0cf62f65c924ead2f98cc5593ff16aa8c166b26a (diff)
downloadrteval-9783d4ddae52dff0257259e42439d21377572b18.tar.gz
hackbench: Wait for hackbench to complete
As the rtevalModulePrototype::run() method will call Hackbench::_WorkloadTask() every second without ensuring hackbench is running first - wait for hackbench to complete before returning from _WorkloadTask(). This approach was chosen here as Hackbench is normally a shortliving process anyway. Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r--rteval/modules/loads/hackbench.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rteval/modules/loads/hackbench.py b/rteval/modules/loads/hackbench.py
index b9e306c..0985414 100644
--- a/rteval/modules/loads/hackbench.py
+++ b/rteval/modules/loads/hackbench.py
@@ -89,6 +89,8 @@ class Hackbench(CommandLineLoad):
stdin=self.__nullfp,
stdout=self.__out,
stderr=self.__err)
+ self.__hbproc.wait()
+
except OSError, e:
if e.errno != errno.ENOMEM:
raise e