mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 15:28:28 +01:00
Fixes #277 Fixes #657 Signed-off-by: Ruslan Kuprieiev <[email protected]>
11 lines
361 B
Python
11 lines
361 B
Python
import os
|
|
from subprocess import check_call
|
|
|
|
REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
os.chdir(REPO_ROOT)
|
|
|
|
os.putenv('PATH', '{}:{}'.format(os.path.join(REPO_ROOT, 'bin'), os.getenv('PATH')))
|
|
os.putenv('DVC_HOME', REPO_ROOT)
|
|
|
|
check_call('nosetests --cover-inclusive --cover-erase --cover-package=dvc --with-coverage', shell=True)
|