diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-01-09 13:31:32 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-01-09 13:32:45 -0500 |
| commit | e47decbdc567aaa7ce4de0d1b7ea8ebc46b09732 (patch) | |
| tree | 7856edd51f89f79024e1b1a184427e12b873070a /tools | |
| parent | 47a9d14ba6888ee53ae4fed95ae4d02b93dd8416 (diff) | |
improve travis fold status reporting; fix sphinx build; fix sphinx errors
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)) |
