summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Martinelli <s.martinelli@gmail.com>2016-09-05 22:22:51 -0700
committerSteve Martinelli <s.martinelli@gmail.com>2016-09-10 04:58:10 +0000
commit6adea682749f4068f47aae8c8356e2acc79554b0 (patch)
tree04306fde93f1022b4f4ef5d2f512ff5218ce7f78
parent676a0e9696ba7550132e4501bdbf3160608faed6 (diff)
downloadpython-openstackclient-6adea682749f4068f47aae8c8356e2acc79554b0.tar.gz
remove the old post_test_hook
Use the new location in openstackclient.tests.functional. Depends-On: I49d54f009021d65c1ae49faf6b3f0a7acdadd7b3 Change-Id: I53b8fcc21c5f3638fd334245036c3d99bcaf9012
-rwxr-xr-xpost_test_hook.sh43
1 files changed, 0 insertions, 43 deletions
diff --git a/post_test_hook.sh b/post_test_hook.sh
deleted file mode 100755
index e555470d..00000000
--- a/post_test_hook.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-
-# This is a script that kicks off a series of functional tests against an
-# OpenStack cloud. It will attempt to create an instance if one is not
-# available. Do not run this script unless you know what you're doing.
-# For more information refer to:
-# http://docs.openstack.org/developer/python-openstackclient/
-
-function generate_testr_results {
- if [ -f .testrepository/0 ]; then
- sudo .tox/functional/bin/testr last --subunit > $WORKSPACE/testrepository.subunit
- sudo mv $WORKSPACE/testrepository.subunit $BASE/logs/testrepository.subunit
- sudo .tox/functional/bin/subunit2html $BASE/logs/testrepository.subunit $BASE/logs/testr_results.html
- sudo gzip -9 $BASE/logs/testrepository.subunit
- sudo gzip -9 $BASE/logs/testr_results.html
- sudo chown jenkins:jenkins $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
- sudo chmod a+r $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
- fi
-}
-
-OPENSTACKCLIENT_DIR=$(cd $(dirname "$0") && pwd)
-sudo chown -R jenkins:stack $OPENSTACKCLIENT_DIR
-
-# Run tests
-echo "Running openstackclient functional test suite"
-set +e
-
-# Go to the openstackclient dir
-cd $OPENSTACKCLIENT_DIR
-
-# Source environment variables to kick things off
-source ~stack/devstack/openrc admin admin
-echo 'Running tests with:'
-env | grep OS
-
-# Preserve env for OS_ credentials
-sudo -E -H -u jenkins tox -efunctional
-EXIT_CODE=$?
-set -e
-
-# Collect and parse result
-generate_testr_results
-exit $EXIT_CODE