diff --git a/awx/main/tests/functional/__init__.py b/awx/main/tests/functional/__init__.py index 405018d1a4..262a142790 100644 --- a/awx/main/tests/functional/__init__.py +++ b/awx/main/tests/functional/__init__.py @@ -1,6 +1,7 @@ from django.db import connection from django.db.models.signals import post_migrate from django.apps import apps +from django.conf import settings def app_post_migration(sender, app_config, **kwargs): @@ -17,7 +18,8 @@ def app_post_migration(sender, app_config, **kwargs): ) -post_migrate.connect(app_post_migration, sender=apps.get_app_config('main')) +if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.sqlite3': + post_migrate.connect(app_post_migration, sender=apps.get_app_config('main')) diff --git a/awx/main/tests/unit/expect/test_expect.py b/awx/main/tests/unit/expect/test_expect.py index 3978cb14c5..a43775ad33 100644 --- a/awx/main/tests/unit/expect/test_expect.py +++ b/awx/main/tests/unit/expect/test_expect.py @@ -90,7 +90,7 @@ def test_cancel_callback_error(): extra_fields = {} status, rc = run.run_pexpect( - ['ls', '-la'], + ['sleep', '2'], HERE, {}, stdout,