Skip to content

Commit

Permalink
Fix a couple of bugs with the bootstrap script, that are discovered w…
Browse files Browse the repository at this point in the history
…hen using it in one of our real-world projects
  • Loading branch information
Sridhar Ratnakumar committed Aug 20, 2010
1 parent 8822e71 commit 1673a93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toxbootstrap.py
Expand Up @@ -114,10 +114,12 @@ def cmdline(argv=None):
logging.info('tox is already installed at %s', tox_script)

# Now run the locally-installed tox
os.chdir('..')
try:
run([tox_script] + argv, shell=False)
run([tox_script] + (argv or []), shell=False)
except CalledProcessError as e:
logging.error('tox exited with error code %d', e.returncode)
sys.exit(e.returncode)


if __name__ == '__main__':
Expand Down

0 comments on commit 1673a93

Please sign in to comment.