diff options
author | Clark Williams <williams@redhat.com> | 2013-01-31 11:42:02 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2013-01-31 11:42:02 -0600 |
commit | 9e5a80092f8a7622c1f3ddb0a719ca4cc77638e0 (patch) | |
tree | 0c2f1eb0eb44fcf7cd5211a39669de1b446f70c3 | |
parent | 873407655e9ee31c3297b99880cb454b81a5ccf6 (diff) | |
parent | 27783aa01e41bce0e2b7b6e3db5d4b453f438ffe (diff) | |
download | rteval-9e5a80092f8a7622c1f3ddb0a719ca4cc77638e0.tar.gz |
Merge remote-tracking branch 'davids/davids/v2.0' into v2.0
-rw-r--r-- | rteval/modules/loads/hackbench.py | 11 | ||||
-rw-r--r-- | server/parser/xmlparser.xsl | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/rteval/modules/loads/hackbench.py b/rteval/modules/loads/hackbench.py index b9e306c..12acbe7 100644 --- a/rteval/modules/loads/hackbench.py +++ b/rteval/modules/loads/hackbench.py @@ -26,7 +26,7 @@ # import sys, os, time, glob, subprocess, errno -from signal import SIGTERM, SIGKILL +from signal import SIGKILL from rteval.modules.loads import CommandLineLoad from rteval.Log import Log @@ -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 @@ -111,8 +113,11 @@ class Hackbench(CommandLineLoad): if self._donotrun: return - if self.__hbproc.poll() == None: - os.kill(self.__hbproc.pid, SIGKILL) + while self.__hbproc.poll() == None: + self._log(Log.DEBUG, "Forcing it to stop") + self.__hbproc.send_signal(SIGKILL) + if self.__hbproc.poll() == None: + time.sleep(2) self.__hbproc.wait() os.close(self.__nullfp) diff --git a/server/parser/xmlparser.xsl b/server/parser/xmlparser.xsl index 987cdf6..9f00123 100644 --- a/server/parser/xmlparser.xsl +++ b/server/parser/xmlparser.xsl @@ -462,7 +462,7 @@ <field fid="12">variance</field> </fields> <records> - <xsl:for-each select="core/statistics|system/statistics"> + <xsl:for-each select="core/statistics[samples > 0]|system/statistics[samples > 0]"> <record> <value fid="0"><xsl:value-of select="$rterid"/></value> <value fid="1"><xsl:choose> |