python-boto3/scripts/ci/run-integ-tests

21 lines
512 B
Plaintext
Raw Normal View History

2015-11-27 23:25:33 +01:00
#!/usr/bin/env python
# Don't run tests from the root repo dir.
# We want to ensure we're importing from the installed
# binary package not from the CWD.
import os
from subprocess import check_call
_dname = os.path.dirname
REPO_ROOT = _dname(_dname(_dname(os.path.abspath(__file__))))
os.chdir(os.path.join(REPO_ROOT, 'tests'))
def run(command):
return check_call(command, shell=True)
run('nosetests --with-xunit --cover-erase --with-coverage '
'--cover-package boto3 --cover-xml -v integration')