From 755e7c0c48b31581add281fa050d2bf975e424ea Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sun, 28 Oct 2018 21:19:58 +0000 Subject: [PATCH] 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 --- tools/ostestr_compat_shim.sh | 8 -------- tox.ini | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100755 tools/ostestr_compat_shim.sh diff --git a/tools/ostestr_compat_shim.sh b/tools/ostestr_compat_shim.sh deleted file mode 100755 index 36c59a6b..00000000 --- a/tools/ostestr_compat_shim.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# preserve old behavior of using an arg as a regex when '--' is not present -case $@ in - (*--*) stestr run $@;; - ('') stestr run;; - (*) stestr run --regex "$@" -esac diff --git a/tox.ini b/tox.ini index a6bf6b1d..f565edb1 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ deps = -r{toxinidir}/requirements.txt whitelist_externals = sh find commands = find . -type f -name "*.py[c|o]" -delete - {toxinidir}/tools/ostestr_compat_shim.sh {posargs} + stestr run {posargs} [testenv:fullstack] basepython = python2.7