Unable to run unit tests with regex

Bug #1800387 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr-libnetwork
Fix Released
Undecided
Unassigned

Bug Description

$ tox -epy27 kuryr_libnetwork.tests.unit.test_kuryr_ipam.TestKuryrIpam

...
py27 runtests: commands[0] | find . -type f -name '*.py[c|o]' -delete
py27 runtests: commands[1] | /opt/stack/kuryr-libnetwork/tools/ostestr_compat_shim.sh kuryr_libnetwork.tests.unit.test_kuryr_ipam.TestKuryrIpam
usage: stestr run [-h] [--failing] [--serial] [--concurrency CONCURRENCY]
                  [--load-list LOAD_LIST] [--partial] [--subunit]
                  [--until-failure] [--analyze-isolation] [--isolated]
                  [--worker-file WORKER_PATH]
                  [--blacklist-file BLACKLIST_FILE]
                  [--whitelist-file WHITELIST_FILE]
                  [--black-regex BLACK_REGEX] [--no-discover TEST_ID]
                  [--random] [--combine] [--no-subunit-trace]
                  [--force-subunit-trace] [--color] [--slowest] [--abbreviate]
                  [--suppress-attachments]
                  [filters [filters ...]]
stestr run: error: unrecognized arguments: --regex
ERROR: InvocationError for command '/opt/stack/kuryr-libnetwork/tools/ostestr_compat_shim.sh kuryr_libnetwork.tests.unit.test_kuryr_ipam.TestKuryrIpam' (exited with code 2)
_______________________________________________________________________________ summary ________________________________________________________________________________
ERROR: py27: commands failed

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kuryr-libnetwork (master)

Reviewed: https://review.openstack.org/613813
Committed: https://git.openstack.org/cgit/openstack/kuryr-libnetwork/commit/?id=755e7c0c48b31581add281fa050d2bf975e424ea
Submitter: Zuul
Branch: master

commit 755e7c0c48b31581add281fa050d2bf975e424ea
Author: Hongbin Lu <email address hidden>
Date: Sun Oct 28 21:19:58 2018 +0000

    Fix an issue on running subset of tests

    It broke after the switching to stestr [1] since stestr doesn't
    have the --regex arguments.

    [1] https://review.openstack.org/#/c/571471/

    Change-Id: Ied13d3c370bba2a18cd54edae0dc80050e87f07e
    Closes-Bug: #1800387

Changed in kuryr-libnetwork:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kuryr-libnetwork 3.0.0

This issue was fixed in the openstack/kuryr-libnetwork 3.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.