This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: Ia5a15a7e460cb5c23a7f74818b0f916da6ecaa85
As part of the docs migration work[0] for Pike we need to switch to use the
openstackdocstheme.
[0] https://review.openstack.org/#/c/472275/
Change-Id: Ibb797e7a004f9a4c29ea38bb8e1f66000c105b0f
This repo is not translated at all - and not setup for translation.
Remove Babel and Babel set up.
Change-Id: Ie3c3d705f50f5de41776a6e5e01db214f9e0e3a4
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: I2c64bcc0b9f95506dad99c93223e6b85f3101708
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove os-testr.
Change-Id: I258a88eda480c264386947cecbf99631dc777757
This commit fixes some typos and changes 'regexp' to 'regex'. I think
'regexp' is also correct. However, in ostestr, they are mixed. So users
may be confused with it. So let's fix it.
Change-Id: I6c9042527707315f5dbb56f4a406327668c57d04
The current logic only considers the first occurrence of a test class
and doesn't update a class's pass/fail status after that. So a test
class, for example:
TestClass
test_1 pass
test_2 fail
test_3 pass
is counted as a passing test class even though it has a failure.
This adds failure tracking to the test result sorting so that any
failure in a test class will make it considered a failing test class
and be sorted at the top of the HTML result page.
Closes-Bug: #1640889
Change-Id: I06919336a09c4afda8ec3a9e7d64d305fbd169c3
It's very common for blacklist files and/or a black regex to have
overlapping matches. In this case ostestr was incorrectly trying to
remove tests from the set of test cases more than once. This commit
fixes this case by simply adding a check if the test is in the set
before trying to delete it. If it's not there, then something else
already removed it from the set of tests we'll be running so we can
just move on.
Change-Id: I1dabf9fb9c182af3dd6e124e79e54e1eb99bed82
You will see os-testr home-page url as follow:
http://docs.openstack.org/developer/os-testr/
So this patch update the home-page url.
Change-Id: Id3f8e4e937f63876a7729425f5d0473ff8d9ea64
The new entry point is created to allow external python programs,
to call ostestr without using an execve(2), and get the same
functionalty as using it form command line.
ostestr expected to work if it called multiple times in a
sequence. Parallel usage is not considered, but is similary safe as
the underlaying test(r) commands.
The explicit exit calls get replaced by returns.
Change-Id: I8efa495347a6956ef0a188063e6f474a4bbe8101
pdb and no_discover cannot be combined with black or white lists,
it was documented, but not checked.
Change-Id: I7168aef00505cb94051e2e587381efba9fd3e445
--whitelist_file, --blacklist_file is an unusual argument,
because of the underscore usage instead of
--blacklist-file/--blacklist-file .
Adding support for the '-' variant, and documenting only the
the '-' variant in the rst.
Change-Id: I8cc8197719f45bcfc05dc9412a03b9b1fe69e722
Adding option for reject regexp,
it works like any entry in the black list file,
so after the basic test selection regexp (including the white list),
the test cases satisfying the black-regexp search condition
will be removed from the final test list.
Change-Id: Id9fecf4aaa799828ae38b31ff3a4798763edfdd1
The listbuilder is able to support very long white list.
construct_regex is considered as deprecated function,
but external project like tempest still using it at the moment.
os-testr internally does not uses it anymore.
Change-Id: I0748605207eaad3065e18b84eecc9ddc4e47404e
The way how we handled the regular expressions had a lot of
limitation.
- We are not able to pass huge arguments to testr, it makes
difficult to have long list if accepted and/or rejected test cases,
but we can pass a path to a file of test cases,
which can be arbitrary big.
- How we wanted to handle the backlists before was not worked together
with the regular selecting regex because it consumed the pattern.
Now the blacklisting happens in a separated phase after the selecting
regex search.
This change just allows the new code path to run when both
a blacklist_file and a selecting regexp specified.
The new way depends on the usual test discovery and just
filters the output of the discovery command,
this strategy can be the default in the future, now I just
wanted to preserve the old behavior as much as possible in
all the other cases.
Change-Id: Ie8e5928e286d0c9076c4eee23319149c9869a6fa
Closes-Bug: #1506215
The directory openstack/common was used to keep codes
from oslo-incubator, we have retired oslo-incubator,
so don't use this directory any more.
Change-Id: I8bec126e0e1b66cfde8f683901bd3c5b4d974962
When using ostestr --no-discover flag. The output subunit
results file is not saved under .testrepository as it is
when using testr run command.
Change-Id: Ied6c5a46661b3b36bf15fd538bc6cac764fddcc8
Closes-Bug: #1597111
This commit makes subprocess outputs to str with universal_newlines
option. In Python 3, we need to do it explicitly. Otherwise an error
occurs. This commit also adds a unit test to prevent regression.
Change-Id: I2e428a3c57357e47c9057e8dbbbb51ae4b65e4e6
This commit fixes some doc warnings and disables the smarty-pants
function. The html_use_smartypants function renders '--' to '–'(–)
but it's not good for command options.
Change-Id: Iab0a93db86f46f26b074ca3e9904fd5ff1b0f533
The problem with TODO files is they require constant commits to keep
up to date, and this rarely happens. As is the case here where this
file is now quite stale and hasn't ever been updated. This commit
just drops the file in favor of just using launchpad as our task
tracking solution.
Change-Id: Id576d0f4dab2ecaf28db93909b7860306898a759