Browse Source

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
Hongbin Lu 5 months ago
parent
commit
755e7c0c48
2 changed files with 1 additions and 9 deletions
  1. 0
    8
      tools/ostestr_compat_shim.sh
  2. 1
    1
      tox.ini

+ 0
- 8
tools/ostestr_compat_shim.sh View File

@@ -1,8 +0,0 @@
1
-#!/bin/sh
2
-
3
-# preserve old behavior of using an arg as a regex when '--' is not present
4
-case $@ in
5
-    (*--*) stestr run $@;;
6
-    ('') stestr run;;
7
-    (*) stestr run --regex "$@"
8
-esac

+ 1
- 1
tox.ini View File

@@ -17,7 +17,7 @@ deps = -r{toxinidir}/requirements.txt
17 17
 whitelist_externals = sh
18 18
                       find
19 19
 commands = find . -type f -name "*.py[c|o]" -delete
20
-           {toxinidir}/tools/ostestr_compat_shim.sh {posargs}
20
+           stestr run {posargs}
21 21
 
22 22
 [testenv:fullstack]
23 23
 basepython = python2.7

Loading…
Cancel
Save