ostestr can't run with both --blacklist_file and --regex at the same time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Medium
|
Szymon Datko |
Bug Description
When I ran:
ostestr --blacklist_file blankfile.txt --regex smoke
Where blankfile.txt is emptied, the suite was able to execute with all the tempest smoke test.
However, when I added a line to exclude the following test to the blacklist file: tempest.
Then I am unable to run a non-emptied blacklist file as shown below:
(tempest) root@uat-
running=
OS_STDERR_
OS_TEST_
${PYTHON:-python} -m subunit.run discover -t /opt/bbc/
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
(tempest) root@uat-
It seems that using the combination of both --blacklist_file and --regex at the same time doesn't work when the blacklist file has some tests to be excluded. When the file is emptied, then the above command works.
Changed in tempest: | |
assignee: | nobody → Szymon Datko (sdatko) |
Changed in tempest: | |
status: | Expired → In Progress |
Changed in tempest: | |
status: | In Progress → Fix Released |
importance: | Undecided → Medium |
In my environment, I can get a test list and run like below.
So, could you please add more information? such as ostestr version, tempest version, etc. scenario. test_volume_ boot_pattern. TestVolumeBootP atternV2. test_volume_ boot_pattern tempest. conf tempest. conf api.compute. security_ groups. test_security_ group_rules. SecurityGroupRu lesTestJSON) [0.000000s] ... FAILED
------------
$ ostestr --version
0.8.0
$ cat ~/tmp/blankfile.txt
tempest.
$ ostestr --blacklist_file ~/tmp/blankfile.txt --regex smoke --list | wc -l
2016-11-16 17:10:30.052 16441 INFO tempest [-] Using tempest config file /etc/tempest/
118
$ ostestr --blacklist_file ~/tmp/blankfile.txt --regex smoke
2016-11-16 17:12:33.054 16638 INFO tempest [-] Using tempest config file /etc/tempest/
<...>
{0} setUpClass (tempest.
<...>
------------