Merge pull request #8527 from edx/db/ensure-noseids-dir-exists
Ensure noseid dir exists when running tests
This commit is contained in:
@@ -47,13 +47,16 @@ THIS_UUID = uuid4().hex[:5]
|
||||
# Nose Test Runner
|
||||
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
|
||||
|
||||
_system = 'cms'
|
||||
_report_dir = REPO_ROOT / 'reports' / _system
|
||||
_report_dir.makedirs_p()
|
||||
_SYSTEM = 'cms'
|
||||
|
||||
_REPORT_DIR = REPO_ROOT / 'reports' / _SYSTEM
|
||||
_REPORT_DIR.makedirs_p()
|
||||
_NOSEID_DIR = REPO_ROOT / '.testids' / _SYSTEM
|
||||
_NOSEID_DIR.makedirs_p()
|
||||
|
||||
NOSE_ARGS = [
|
||||
'--id-file', REPO_ROOT / '.testids' / _system / 'noseids',
|
||||
'--xunit-file', _report_dir / 'nosetests.xml',
|
||||
'--id-file', _NOSEID_DIR / 'noseids',
|
||||
'--xunit-file', _REPORT_DIR / 'nosetests.xml',
|
||||
]
|
||||
|
||||
TEST_ROOT = path('test_root')
|
||||
|
||||
@@ -87,9 +87,11 @@ _SYSTEM = 'lms'
|
||||
|
||||
_REPORT_DIR = REPO_ROOT / 'reports' / _SYSTEM
|
||||
_REPORT_DIR.makedirs_p()
|
||||
_NOSEID_DIR = REPO_ROOT / '.testids' / _SYSTEM
|
||||
_NOSEID_DIR.makedirs_p()
|
||||
|
||||
NOSE_ARGS = [
|
||||
'--id-file', REPO_ROOT / '.testids' / _SYSTEM / 'noseids',
|
||||
'--id-file', _NOSEID_DIR / 'noseids',
|
||||
'--xunit-file', _REPORT_DIR / 'nosetests.xml',
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user