test: call nosetests directly

Previous method of calling nose.main() didn't really work on windows.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-04-10 02:59:38 +03:00
parent f529447d39
commit 2dcfbad022
+6 -3
View File
@@ -1,4 +1,7 @@
import nose
import os
from subprocess import check_call
if __name__ == '__main__':
nose.main(argv=['--cover-inclusive', '--cover-erase', '--cover-package=dvc', '--with-coverage'])
REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.chdir(REPO_ROOT)
check_call('nosetests --cover-inclusive --cover-erase --cover-package=dvc --with-coverage', shell=True)