Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

run tox itself after everything is installed

  • Loading branch information...
commit 6c91212d60819c135f91558ed4360c058bc42a1d 1 parent 501f2f2
@srid authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 tox-bootstrap.py
View
14 tox-bootstrap.py
@@ -5,7 +5,7 @@
from os import path
from urllib import urlretrieve
import logging
-from subprocess import check_call
+from subprocess import check_call, CalledProcessError
logging.basicConfig(level=logging.INFO)
@@ -78,9 +78,15 @@ def main():
get_script_path('toxinstall', 'pip')))
assert has_script('toxinstall', 'tox')
- logging.info('tox is already installed at %s',
- path.abspath(get_script_path('toxinstall', 'tox')))
-
+ tox_script = path.abspath(get_script_path('toxinstall', 'tox'))
+ logging.info('tox is already installed at %s', tox_script)
+
+ # Now run the locally-installed tox
+ try:
+ run(tox_script)
+ except CalledProcessError as e:
+ logging.error('tox exited with error code %d', e.returncode)
+
if __name__ == '__main__':
main()
Please sign in to comment.
Something went wrong with that request. Please try again.