summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShu Yingya <yingya.shu@easystack.cn>2017-09-13 20:18:00 +0800
committerShu Yingya <yingya.shu@easystack.cn>2017-09-13 20:22:07 +0800
commit499290fb8afe4940c8afe11d7dec660062b867a8 (patch)
treed53709561fe1fa72fde852e56639b548e1d51628
parent20fd8aaa7c50d5e5353e3ec71a6d2301cf82e2b9 (diff)
downloadpython-saharaclient-499290fb8afe4940c8afe11d7dec660062b867a8.tar.gz
[ut] replace .testr.conf with .stestr.conf
In Chaneg[1], os_testr switches the otestr command to use stestr under the covers. So that we get warning: ostestr.py:120: UserWarning: No .stestr.conf file found in the CWD. Please create one to to replace the .testr.conf. You can find a script to do this in the stestr git repository. So remove the .testr.conf and add .stestr.conf which was generated using a utility script as documented here[2]: [1] Id7cb2a39a8308f1413608dcf19273a1d7f33592e [2] https://media.readthedocs.org/pdf/stestr/stable/stestr.pdf Change-Id: I3733a5786ef1dbc5dc234c8736b68b1e59f2cfad
-rw-r--r--.gitignore1
-rw-r--r--.stestr.conf3
-rwxr-xr-x.testr.conf7
3 files changed, 4 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index d178cdc..4b9fae4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ pip-log.txt
Thumbs.db
.venv
.idea
+.stestr
out
target
*.iml
diff --git a/.stestr.conf b/.stestr.conf
new file mode 100644
index 0000000..e8da882
--- /dev/null
+++ b/.stestr.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+test_path=./saharaclient/tests
+top_dir=./
diff --git a/.testr.conf b/.testr.conf
deleted file mode 100755
index 4da4d7d..0000000
--- a/.testr.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-[DEFAULT]
-test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
- OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
- OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
- ${PYTHON:-python} -m subunit.run discover $DISCOVER_DIRECTORY $LISTOPT $IDOPTION
-test_id_option=--load-list $IDFILE
-test_list_option=--list