Repository: incubator-slider
Updated Branches:
  refs/heads/feature/python_unittests 801825d0a -> ea1bd184f


Test Commit 9


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/58f4c8b3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/58f4c8b3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/58f4c8b3

Branch: refs/heads/feature/python_unittests
Commit: 58f4c8b3c35754a2f805876ca8b3bbf36efcf722
Parents: 801825d
Author: Sumit Mohanty <smoha...@hortonworks.com>
Authored: Sun Nov 9 09:57:42 2014 -0800
Committer: Sumit Mohanty <smoha...@hortonworks.com>
Committed: Sun Nov 9 09:57:42 2014 -0800

----------------------------------------------------------------------
 slider-agent/src/test/python/agent/TestPythonExecutor.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/58f4c8b3/slider-agent/src/test/python/agent/TestPythonExecutor.py
----------------------------------------------------------------------
diff --git a/slider-agent/src/test/python/agent/TestPythonExecutor.py 
b/slider-agent/src/test/python/agent/TestPythonExecutor.py
index 6506758..e6a8592 100644
--- a/slider-agent/src/test/python/agent/TestPythonExecutor.py
+++ b/slider-agent/src/test/python/agent/TestPythonExecutor.py
@@ -125,6 +125,9 @@ class TestPythonExecutor(TestCase):
     _, tmpoutfile = tempfile.mkstemp()
     _, tmperrfile = tempfile.mkstemp()
     _, tmpstroutfile = tempfile.mkstemp()
+    if IS_WINDOWS:
+      if os.path.exists(tmpstroutfile):
+        os.remove(tmpstroutfile)
     PYTHON_TIMEOUT_SECONDS =  5
 
     def launch_python_subprocess_method(command, tmpout, tmperr, 
environment_vars):

Reply via email to