Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
obs-service-tar_scm
test.py
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File test.py of Package obs-service-tar_scm
#!/usr/bin/python import sys import unittest from gittests import GitTests from svntests import SvnTests from hgtests import HgTests from bzrtests import BzrTests if __name__ == '__main__': suite = unittest.TestSuite() testclasses = [ SvnTests, GitTests, HgTests, BzrTests, ] for testclass in testclasses: suite.addTests(unittest.TestLoader().loadTestsFromTestCase(testclass)) runner_args = { #'verbosity' : 2, } major, minor, micro, releaselevel, serial = sys.version_info if major > 2 or (major == 2 and minor >= 7): # New in 2.7 runner_args['buffer'] = True #runner_args['failfast'] = True runner = unittest.TextTestRunner(**runner_args) result = runner.run(suite) if result.wasSuccessful(): sys.exit(0) else: sys.exit(1)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor