single threaded for profile-installed.py

This commit is contained in:
wiredfool 2014-07-23 14:30:55 -07:00
parent e14e3593d9
commit 75dac32a0a

View File

@ -21,14 +21,6 @@ if len(sys.argv) == 1:
# Make sure that nose doesn't muck with our paths. # Make sure that nose doesn't muck with our paths.
if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv): if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv):
sys.argv.insert(1, '--no-path-adjustment') sys.argv.insert(1, '--no-path-adjustment')
if 'NOSE_PROCESSES' not in os.environ:
for arg in sys.argv:
if '--processes' in arg:
break
else: # for
sys.argv.insert(1, '--processes=-1') # -1 == number of cores
sys.argv.insert(1, '--process-timeout=30')
if __name__ == '__main__': if __name__ == '__main__':
profile.run("nose.main()", sort=2) profile.run("nose.main()", sort=2)