diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-02-14 10:33:04 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-02-14 10:33:21 +0100 |
commit | 387e3f474c08ed49bc8a4b1157f3082a4ca7c640 (patch) | |
tree | cd8f77b2ba37cbfc2552e1781ad444bf87031096 /scripts/Util.py | |
parent | Fix ICE-8666 - IceGridGUI Java 9 NPE (diff) | |
download | ice-387e3f474c08ed49bc8a4b1157f3082a4ca7c640.tar.bz2 ice-387e3f474c08ed49bc8a4b1157f3082a4ca7c640.tar.xz ice-387e3f474c08ed49bc8a4b1157f3082a4ca7c640.zip |
Added tracing for IceLocatorDiscovery (ICE-8072)
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index c6c73628f6a..79476431c63 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -1909,7 +1909,8 @@ class LocalProcessController(ProcessController): def teardown(self, current, success): if self.traceFile: if success or current.driver.isInterrupted(): - os.remove(self.traceFile) +# os.remove(self.traceFile) + pass else: current.writeln("saved {0}".format(self.traceFile)) @@ -1943,9 +1944,12 @@ class LocalProcessController(ProcessController): if not isinstance(process.getMapping(current), JavaScriptMapping): traceProps = process.getEffectiveTraceProps(current) if traceProps: + if "Ice.ProgramName" in props: + programName = props["Ice.ProgramName"] + else: + programName = process.exe or current.testcase.getProcessType(process) traceFile = os.path.join(current.testsuite.getPath(), - "{0}-{1}.log".format(process.exe or current.testcase.getProcessType(process), - time.strftime("%m%d%y-%H%M"))) + "{0}-{1}.log".format(programName, time.strftime("%m%d%y-%H%M"))) traceProps["Ice.StdErr"] = traceFile props.update(traceProps) |