Salome HOME
compatibility python 2.6 and bug fix in sat log -t
[tools/sat.git] / test / _testTools / tools.py
index 6d13ac20339d8cd59e1872d6dd5d56b134138d7c..61de6cfdc9ca1c08380f08a686b02100dcf1d085 100644 (file)
@@ -53,7 +53,7 @@ def kill9(pid):
 
 def check_proc_existence_and_kill(regex):
     cmd = 'ps aux | grep "' + regex + '"'
-    psRes = subprocess.check_output(cmd, shell=True)
+    psRes = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
     psRes = psRes.split('\n')
     for line in psRes:
         if 'grep' in line or len(line) == 0: