mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-22 02:02:14 +00:00
27 lines
629 B
Python
Executable File
27 lines
629 B
Python
Executable File
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
|
|
basedir = os.path.dirname(os.path.realpath(__file__))
|
|
vedir = os.path.join(basedir, '.virtualenv')
|
|
os.system('./bootstrap.sh')
|
|
|
|
activate_virtualenv = os.path.join(vedir, 'bin', 'activate_this.py')
|
|
print('Activating virtualenv at ' + activate_virtualenv)
|
|
|
|
report_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../target/pytest_reports')
|
|
if not os.path.exists(report_dir):
|
|
os.system('mkdir -p ' + report_dir)
|
|
|
|
execfile(activate_virtualenv, dict(__file__=activate_virtualenv))
|
|
|
|
import pytest
|
|
|
|
result = 1
|
|
|
|
result = pytest.main(list(sys.argv[1:]))
|
|
|
|
sys.exit(result)
|
|
|
|
|