diff --git a/tools/check_ctest_hung.py b/tools/check_ctest_hung.py index 162e3b2943890587740175332440c05e0973bd1f..7de76c381b29a1ff8dcf2167f0e861dc261aa47b 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()