Эх сурвалжийг харах

master Falcore was improperly killing the test

Essentially, the stop function was looking for any instance of
'falcore' in the name and killing that process, which would include
the run-test script used in testing falcore singularly.
Mike Smith 12 жил өмнө
parent
commit
23c892c402

+ 1 - 1
falcore/setup.py

@@ -23,7 +23,7 @@ def stop(logfile, errfile):
   p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   out, err = p.communicate()
   out, err = p.communicate()
   for line in out.splitlines():
   for line in out.splitlines():
-    if 'falcore' in line:
+    if 'falcore' in line and 'run-tests' not in line:
       pid = int(line.split(None, 2)[1])
       pid = int(line.split(None, 2)[1])
       os.kill(pid, 9)
       os.kill(pid, 9)
   return 0
   return 0