From 624df072debcf6f641ebdd5808c4efaae432009f Mon Sep 17 00:00:00 2001 From: "yi.wu" Date: Thu, 21 Jun 2018 09:32:43 +0800 Subject: [PATCH] add usage --- tools/check_ctest_hung.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/check_ctest_hung.py b/tools/check_ctest_hung.py index 162e3b2943..7de76c381b 100644 --- a/tools/check_ctest_hung.py +++ b/tools/check_ctest_hung.py @@ -23,6 +23,16 @@ def escape(input): def main(): + usage = """Usage: +1. Download the Paddle_PR_CI_*.log from TeamCity +2. run: python check_ctest_hung.py Paddle_PR_CI_*.log +3. If there is hung ctest, the result likes: +Diff: set(['test_parallel_executor_crf']) + """ + if len(sys.argv) < 2: + print(usage) + exit(0) + logfile = sys.argv[1] started = set() passed = set() -- GitLab