diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-01-09 16:18:52 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-01-09 16:22:19 -0500 |
| commit | d41ed768dc4e9adee5748d3d4d6a8c8678f97173 (patch) | |
| tree | 8e6660c17654b886eab0db1f09e1f38df2dc8ba2 /tools | |
| parent | 172311fad896fdb0780bdd6597b0b6d4d8bdadd3 (diff) | |
Fix sphinx build issues; add better travis fold reporting; update author info
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/print_status.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/print_status.py b/tools/print_status.py new file mode 100755 index 000000000..ed563fd68 --- /dev/null +++ b/tools/print_status.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + +import sys +if len(sys.argv) != 2: + print("""\ +Usage: print_status.py STATUS_FILENAME + STATUS_FILENAME contains one line with an integer status.""" + ) + sys.exit(1) +with open(sys.argv[1], 'r') as status_in: + status = int(status_in.readline()) + +print('{} with status {}'.format( + "\033[32msucceeded\033[0m" if status == 0 else "\033[31mfailed\033[0m", + status)) |
