Ticket #9243 (closed enhancement: fixed)
sage-doctest should use powers of 2 for return codes
|Reported by:||ddrake||Owned by:||mvngu|
|Report Upstream:||N/A||Reviewers:||Willem Jan Palenstijn, Mitesh Patel|
|Authors:||Dan Drake, Willem Jan Palenstijn||Merged in:||sage-4.5.2.alpha1|
Right now, sage-doctest uses these return codes:
# Return value in process exit code: # 0: all tests passed # 1: file not found # 2: KeyboardInterrupt # 3: doctest process was terminated by a signal # 4: the doctesting framework raised an exception # 100: failed doctests
In #8641 and #9224, we make sure that the return code gets passed on to the user, and for multiple files, we `or' the return codes together. It would be much nicer for the user if we used powers of 2 for return codes, so that it's easy to see exactly what happened.
I recommend we change 3->4, 4->8, and 100->128 in sage-doctest.
- Status changed from needs_review to positive_review
- Reviewers set to Willem Jan Palenstijn, Mitesh Patel
- Authors set to Dan Drake, Willem Jan Palenstijn