mirror of
https://github.com/ansible/awx.git
synced 2026-01-25 00:11:23 -03:30
Make sure we set up the JOBOUTPUT_ROOT directory for running unit tests
This commit is contained in:
parent
0948418ce2
commit
a0fd9c5f18
@ -47,6 +47,8 @@ class BaseTestMixin(object):
|
||||
# commands that run from tests.
|
||||
for opt in ('ENGINE', 'NAME', 'USER', 'PASSWORD', 'HOST', 'PORT'):
|
||||
os.environ['AWX_TEST_DATABASE_%s' % opt] = settings.DATABASES['default'][opt]
|
||||
if not os.path.exists(settings.JOBOUTPUT_ROOT):
|
||||
os.makedirs(settings.JOBOUTPUT_ROOT)
|
||||
|
||||
def tearDown(self):
|
||||
super(BaseTestMixin, self).tearDown()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user