diff options
author | Wojciech Dec <wdec@cisco.com> | 2016-08-16 19:27:01 +0200 |
---|---|---|
committer | Wojciech Dec <wdec@cisco.com> | 2016-08-16 19:29:27 +0200 |
commit | c3b2c2a9a22bac5cf17813c589444d3abebaa23b (patch) | |
tree | 68c2fc0cb8c32cbb8fabf69ac81e1e0ba50cff2a /networking-odl/devstack/post_test_hook.sh | |
parent | 3285c8e93ea59d98b392591ef6dfa5b1de3bb92d (diff) |
Adding Mitaka networking-old module with the ODL topology based port
binding resolution mechanism from https://review.openstack.org/333186
Change-Id: I10d400aac9bb639c146527f0f93e6925cb74d9de
Signed-off-by: Wojciech Dec <wdec@cisco.com>
Diffstat (limited to 'networking-odl/devstack/post_test_hook.sh')
-rw-r--r-- | networking-odl/devstack/post_test_hook.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/networking-odl/devstack/post_test_hook.sh b/networking-odl/devstack/post_test_hook.sh new file mode 100644 index 0000000..64d291e --- /dev/null +++ b/networking-odl/devstack/post_test_hook.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +set -xe + +GATE_DEST=$BASE/new +DEVSTACK_PATH=$GATE_DEST/devstack + +source $DEVSTACK_PATH/functions +source $DEVSTACK_PATH/localrc + +TEMPEST_CODE_DIR="$BASE/new/tempest" +TEMPEST_DATA_DIR="$DATA_DIR/tempest" +NETWORKING_ODL_DIR="$BASE/new/networking-odl" + +IS_GATE=$(trueorfalse False IS_GATE) +if [[ "$IS_GATE" == "True" ]] +then + source $NETWORKING_ODL_DIR/devstack/devstackgaterc +fi + +owner=stack +sudo_env="TEMPEST_CONFIG_DIR=$TEMPEST_CODE_DIR/etc" + +cd $TEMPEST_CODE_DIR +sudo chown -R $owner:stack $TEMPEST_CODE_DIR +sudo mkdir -p "$TEMPEST_DATA_DIR" +sudo chown -R $owner:stack $TEMPEST_DATA_DIR +source $DEVSTACK_PATH/openrc admin admin + +echo "Some pre-process info" +neutron net-list +neutron port-list +neutron subnet-list +neutron router-list + +echo "Running networking-odl test suite" +sudo -H -u $owner $sudo_env tools/pretty_tox_serial.sh "$DEVSTACK_GATE_TEMPEST_REGEX" + +echo "Some post-process info" +neutron net-list +neutron port-list +neutron subnet-list +neutron router-list |