Browse Source

Merge "Support running subset of unit tests"

Zuul 1 year ago
parent
commit
2f2d421a0f
2 changed files with 9 additions and 1 deletions
  1. 8
    0
      tools/ostestr_compat_shim.sh
  2. 1
    1
      tox.ini

+ 8
- 0
tools/ostestr_compat_shim.sh View File

@@ -0,0 +1,8 @@
1
+#!/bin/sh
2
+
3
+# preserve old behavior of using an arg as a regex when '--' is not present
4
+case $@ in
5
+    (*--*) ostestr $@;;
6
+    ('') ostestr;;
7
+    (*) ostestr --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
-           ostestr '{posargs}'
20
+           {toxinidir}/tools/ostestr_compat_shim.sh {posargs}
21 21
 
22 22
 [testenv:fullstack]
23 23
 basepython = python2.7

Loading…
Cancel
Save