From afb114314788f022c50cd89323496bee172314d2 Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Thu, 2 Jun 2016 16:09:50 +0900 Subject: [PATCH] Deprecate run_tests.sh This commit deprecates run_tests.sh script and adds a deprecation document. We don't pay attention this script actually however, I suppose new people are coming and see the top of the directory and find this script and try to use this. And if something wrong happens, we need to ask and check 'which runner did you use?'. So I would like to reduce the ways to execute unit tests. Change-Id: Ia764fa3a15dc9faa753d4aca4c76462a8b9dd40b --- README.rst | 5 ++--- run_tests.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 53c7de5764..d109a2d130 100644 --- a/README.rst +++ b/README.rst @@ -178,9 +178,8 @@ should only be run on the unit test directory. The default value of OS_TEST_PATH is OS_TEST_PATH=./tempest/test_discover which will only run test discover on the Tempest suite. -Alternatively, you can use the run_tests.sh script which will create a venv and -run the unit tests. There are also the py27 and py34 tox jobs which will run -the unit tests with the corresponding version of python. +Alternatively, there are the py27 and py34 tox jobs which will run the unit +tests with the corresponding version of python. Python 2.6 ---------- diff --git a/run_tests.sh b/run_tests.sh index 22314b6c2a..a856bb44d9 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -17,6 +17,44 @@ function usage { echo " -- [TESTROPTIONS] After the first '--' you can pass arbitrary arguments to testr " } +function deprecation_warning { + cat <