diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-01-09 14:04:03 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-09 14:04:03 -0800 |
| commit | dabb8ffdaa46ae84d0cdbd00511da9300a4dc8df (patch) | |
| tree | 8e6660c17654b886eab0db1f09e1f38df2dc8ba2 /tools/print_status.py | |
| parent | 172311fad896fdb0780bdd6597b0b6d4d8bdadd3 (diff) | |
| parent | d41ed768dc4e9adee5748d3d4d6a8c8678f97173 (diff) | |
Merge pull request #1448 from dhalbert/sphinx-fixes
Fix sphinx build issues; add better travis fold reporting; update aut…
Diffstat (limited to 'tools/print_status.py')
| -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)) |
