File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
2-
2+ import platform
33from os .path import abspath , dirname , join
44import sys
55
66import pytest
77
88
99curdir = dirname (abspath (__file__ ))
10+ atest_dir = join (curdir , '..' , 'atest' )
11+ python_version = platform .python_version ()
12+ xunit_report = join (atest_dir , 'results' , 'xunit-%s.xml' % python_version )
1013sys .path .insert (0 , join (curdir , '..' , 'src' ))
11- sys .path .insert (0 , join (curdir , '..' , 'atest' ))
12- rc = pytest .main (sys .argv [1 :] + ['-p' , 'no:cacheprovider' , curdir ])
14+ sys .path .insert (0 , atest_dir )
15+ pytest_args = sys .argv [1 :] + [
16+ '-p' , 'no:cacheprovider' ,
17+ '--junitxml=%s' % xunit_report ,
18+ '-o' , 'junit_family=xunit2' ,
19+ curdir
20+ ]
21+ rc = pytest .main (pytest_args )
1322sys .exit (rc )
You can’t perform that action at this time.
0 commit comments