From ec235b038fe54371cb6ee20983147013d7816fd0 Mon Sep 17 00:00:00 2001 From: Armando Migliaccio Date: Wed, 2 Nov 2016 14:41:28 -0700 Subject: [PATCH] Add bits to run neutron-lib periodic test successfully Change-Id: Ie1b565c516e5c1bb9e4c6108b9a57f6912d5a81e --- test-requirements.txt | 1 + tools/ostestr_compat_shim.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 tools/ostestr_compat_shim.sh diff --git a/test-requirements.txt b/test-requirements.txt index 31eab237..cc804c91 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,6 +11,7 @@ requests-mock>=1.1 # Apache-2.0 sphinx!=1.3b1,<1.4,>=1.2.1 # BSD oslosphinx>=4.7.0 # Apache-2.0 oslo.concurrency>=3.8.0 # Apache-2.0 +os-testr>=0.8.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testresources>=0.2.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT diff --git a/tools/ostestr_compat_shim.sh b/tools/ostestr_compat_shim.sh new file mode 100755 index 00000000..a483ed1a --- /dev/null +++ b/tools/ostestr_compat_shim.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# preserve old behavior of using an arg as a regex when '--' is not present +case $@ in + (*--*) ostestr $@;; + ('') ostestr;; + (*) ostestr --regex "$@" +esac