mirrored from https://chromium.googlesource.com/infra/luci/luci-py
-
Notifications
You must be signed in to change notification settings - Fork 36
/
README.py
executable file
·37 lines (28 loc) · 894 Bytes
/
README.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
# coding=utf-8
# Copyright 2012 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
###
# Run me to generate the documentation!
###
# Line too long (NN/80)
# pylint: disable=C0301
"""Test tracing and isolation infrastructure.
A few scripts have strict dependency rules:
- The pure tracing scripts (trace_*.py) do not know about isolate
infrastructure.
"""
import os
import sys
def main():
for i in sorted(os.listdir(os.path.dirname(os.path.abspath(__file__)))):
if not i.endswith('.py') or i == 'PRESUBMIT.py':
continue
module = __import__(i[:-3])
if hasattr(module, '__doc__'):
print(module.__name__)
print(''.join(' %s\n' % i for i in module.__doc__.splitlines()))
return 0
if __name__ == '__main__':
sys.exit(main())