From bafe5357c2ad8cf9f87bf726db9cd8a3a1825123 Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Wed, 27 Dec 2017 16:16:23 +0900 Subject: Switch to use stestr directly This commit makes to use stestr instead of ostestr directly. ostestr>1.0.0 has started to use stestr instead of testrepository. So there is no reason to use ostestr anymore. Change-Id: I6327d50c9f6dd19f1de24b9b51532104fb3e916e --- openstackclient/tests/functional/run_ostestr.sh | 16 ---------------- openstackclient/tests/functional/run_stestr.sh | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100755 openstackclient/tests/functional/run_ostestr.sh create mode 100755 openstackclient/tests/functional/run_stestr.sh (limited to 'openstackclient/tests/functional') diff --git a/openstackclient/tests/functional/run_ostestr.sh b/openstackclient/tests/functional/run_ostestr.sh deleted file mode 100755 index a6adad96..00000000 --- a/openstackclient/tests/functional/run_ostestr.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# This is a script that runs ostestr with the openrc OS_ variables sourced. -# Do not run this script unless you know what you're doing. -# For more information refer to: -# https://docs.openstack.org/python-openstackclient/latest/ - -# Source environment variables to kick things off -if [ -f ~stack/devstack/openrc ] ; then - source ~stack/devstack/openrc admin admin -fi - -echo 'Running tests with:' -env | grep OS - -ostestr $* diff --git a/openstackclient/tests/functional/run_stestr.sh b/openstackclient/tests/functional/run_stestr.sh new file mode 100755 index 00000000..229b42b6 --- /dev/null +++ b/openstackclient/tests/functional/run_stestr.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# This is a script that runs ostestr with the openrc OS_ variables sourced. +# Do not run this script unless you know what you're doing. +# For more information refer to: +# https://docs.openstack.org/python-openstackclient/latest/ + +# Source environment variables to kick things off +if [ -f ~stack/devstack/openrc ] ; then + source ~stack/devstack/openrc admin admin +fi + +echo 'Running tests with:' +env | grep OS + +stestr run $* -- cgit v1.2.1