From 5eaffb352077b63569d274313626e907cb909c9d Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 16 Apr 2018 09:49:45 -0400 Subject: [PATCH] run ansible tests separately --- Makefile | 4 +++- tools/docker-compose/unit-tests/docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e3dd2ecad8..67136029d2 100644 --- a/Makefile +++ b/Makefile @@ -369,12 +369,14 @@ check: flake8 pep8 # pyflakes pylint TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests # Run all API unit tests. -test: test_ansible +test: @if [ "$(VENV_BASE)" ]; then \ . $(VENV_BASE)/awx/bin/activate; \ fi; \ py.test $(TEST_DIRS) +test_combined: test_ansible test + test_unit: @if [ "$(VENV_BASE)" ]; then \ . $(VENV_BASE)/awx/bin/activate; \ diff --git a/tools/docker-compose/unit-tests/docker-compose.yml b/tools/docker-compose/unit-tests/docker-compose.yml index 8f5cc07c20..9c94cc3564 100644 --- a/tools/docker-compose/unit-tests/docker-compose.yml +++ b/tools/docker-compose/unit-tests/docker-compose.yml @@ -9,6 +9,6 @@ services: environment: SWIG_FEATURES: "-cpperraswarn -includeall -I/usr/include/openssl" TEST_DIRS: awx/main/tests/functional awx/main/tests/unit awx/conf/tests awx/sso/tests - command: ["make test"] + command: ["make test_combined"] volumes: - ../../../:/awx_devel