root/gtkimageview/tests/alltests.py
| Revision 2, 406 bytes (checked in by test, 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | import os |
| 2 | import os.path |
| 3 | import sys |
| 4 | |
| 5 | if __name__ == '__main__': |
| 6 | dir = sys.path[0] |
| 7 | |
| 8 | for filename in os.listdir(dir): |
| 9 | if not filename.startswith('test-') or os.path.splitext(filename)[1]: |
| 10 | continue |
| 11 | print '==', filename, '==' |
| 12 | code = os.system(os.path.join(dir, filename)) |
| 13 | if code: |
| 14 | print 'Exited with return code %d' % code |
| 15 | sys.exit() |
Note: See TracBrowser for help on using the browser.
