From b56b6543221b45d9ada8a0b08ca808ac7bb210f4 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Wed, 28 Jun 2023 20:48:36 +0000 Subject: [PATCH] bot_update: fix the check for is running on linux Since python3.3, the platform value has been changed from linux2 or linux3 to linux. The bug has stopped bot_update script from emitting proces tree periodically that will be helpful when debugging. R=sokcevic Bug: 1455926 Change-Id: Id6ab4ddf46eaa322a8b5470baa7ba6cc656a6bb3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4654290 Auto-Submit: Yiwei Zhang Commit-Queue: Josip Sokcevic Reviewed-by: Josip Sokcevic Commit-Queue: Yiwei Zhang --- recipes/recipe_modules/bot_update/resources/bot_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/recipe_modules/bot_update/resources/bot_update.py b/recipes/recipe_modules/bot_update/resources/bot_update.py index 4422a2a8d..469dac6bb 100755 --- a/recipes/recipe_modules/bot_update/resources/bot_update.py +++ b/recipes/recipe_modules/bot_update/resources/bot_update.py @@ -158,7 +158,7 @@ class RepeatingTimer(threading.Thread): def _print_pstree(): """Debugging function used to print "ps auxwwf" for stuck processes.""" - if sys.platform.startswith('linux2'): + if sys.platform.startswith('linux'): # Add new line for cleaner output print() subprocess.call(['ps', 'auxwwf'])