neutron-vpnaas/tools/ostestr_compat_shim.sh
Paul Michali 7689ea4ac6 Switch from testr to ostestr
Was seeing py34 (and DSVM) tests failing with an Invocation error, even
though the test passed. Switched to ostestr, as is done in Neutron under
commit 240facf9e67aa5b205679f397107abfe059a869a, and the test passes
(not sure what the root cause is here).

Change-Id: If85987865e0393892c52f319d7cef526c021e0df
2016-02-17 12:43:33 +00:00

9 lines
169 B
Bash
Executable File

#!/bin/sh
# preserve old behavior of using an arg as a regex when '--' is not present
case $@ in
(*--*) ostestr $@;;
('') ostestr;;
(*) ostestr --regex "$@"
esac