Browse Source

[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
changes/09/503609/2
Shu Yingya 4 years ago
parent
commit
499290fb8a
  1. 1
      .gitignore
  2. 3
      .stestr.conf
  3. 7
      .testr.conf

1
.gitignore

@ -17,6 +17,7 @@ pip-log.txt
Thumbs.db
.venv
.idea
.stestr
out
target
*.iml

3
.stestr.conf

@ -0,0 +1,3 @@
[DEFAULT]
test_path=./saharaclient/tests
top_dir=./

7
.testr.conf

@ -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
Loading…
Cancel
Save