From c2d9b66975d3606379eec9f01f055847693c6949 Mon Sep 17 00:00:00 2001 From: Jeremy Liu Date: Wed, 12 Apr 2017 14:21:29 +0800 Subject: [PATCH] Fix tox command for running tests Fix the command for running tox tests and add the missing file. Change-Id: I41b78a1e39b818ed0534a02bc7736a5c461567e8 --- .testr.conf | 5 +++++ tox.ini | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .testr.conf diff --git a/.testr.conf b/.testr.conf new file mode 100644 index 0000000..6a52f97 --- /dev/null +++ b/.testr.conf @@ -0,0 +1,5 @@ +[DEFAULT] +test_command=${PYTHON:-python} -m subunit.run discover -s ./barbican_tempest_plugin -t . $LISTOPT $IDOPTION + +test_id_option=--load-list $IDFILE +test_list_option=--list diff --git a/tox.ini b/tox.ini index 011fc96..1f1ce01 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning deps = -r{toxinidir}/test-requirements.txt -commands = python setup.py test --slowest --testr-args='{posargs}' +commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:pep8] commands =