status from main() and call sys.exit(main()) in the startup stub at
the end of the file.
except getopt.error, msg:
print msg
print __doc__
- sys.exit(2)
+ return 2
verbose = 0
quiet = 0
generate = 0
if o == '-x': exclude = 1
if generate and verbose>1:
print "-g and more than one -v don't go together!"
- sys.exit(2)
+ return 2
good = []
bad = []
skipped = []
if skipped and not quiet:
print count(len(skipped), "test"), "skipped:",
print string.join(skipped)
- sys.exit(len(bad) > 0)
+ return len(bad) > 0
stdtests = [
'test_grammar',
return 0
if __name__ == '__main__':
- main()
+ sys.exit(main())