Fix RecreateSKPs bot (again)
authorborenet <borenet@google.com>
Fri, 17 Oct 2014 21:17:18 +0000 (14:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Oct 2014 21:17:18 +0000 (14:17 -0700)
It's killing its own process...

BUG=skia:3008
TBR=rmistry
NOTRY=true

Review URL: https://codereview.chromium.org/661203002

tools/skp/recreate_skps.py

index 78863183cb90674e2e00a89bcd66476cd62aa860..bbec14a6a6c75b04c668282499927f5e7287f1d5 100644 (file)
@@ -72,7 +72,7 @@ def main(chrome_src_path, browser_executable):
     for line in procs.splitlines():
       if browser_executable in line:
         pid = line.strip().split(' ')[0]
-        if pid != str(os.getpid()):
+        if pid != str(os.getpid()) and not 'python' in line:
           try:
             shell_utils.run(['kill', '-9', pid])
           except shell_utils.CommandFailedException as e: