diff options
author | 2017-03-01 16:58:50 -0800 | |
---|---|---|
committer | 2017-03-01 16:58:50 -0800 | |
commit | bf8c78275928ae4cf1cb47a1ef7c0495353e0329 (patch) | |
tree | 27e9b7ac01be0ba18fe3a8bd90ecfddbfef68969 | |
parent | ac86fa25adcc057220298a48e4f9b60d0cb51004 (diff) |
Add openrc parameter
JIRA: COPPER-4
Change-Id: Ic1051d3f17c74b4be91f3827808a5aa44abf64ec
Signed-off-by: bryan <bryan.sullivan@att.com>
-rw-r--r-- | tests/adhoc/smoke01.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/adhoc/smoke01.sh b/tests/adhoc/smoke01.sh index dd1dd56..57b5b30 100644 --- a/tests/adhoc/smoke01.sh +++ b/tests/adhoc/smoke01.sh @@ -22,7 +22,8 @@ # # How to use: # Install Congress test server per https://wiki.opnfv.org/copper/academy -# $ bash ~/git/copper/tests/adhoc/smoke01.sh +# $ bash ~/git/copper/tests/adhoc/smoke01.sh <openrc> +# <openrc>: path to your openrc script # After test, cleanup with # $ bash ~/git/copper/tests/adhoc/smoke01-clean.sh @@ -45,12 +46,6 @@ unclean() { fail } -if [ $# -eq 1 ]; then - if [ $1 == "debug" ]; then - set -x #echo on - fi -fi - # Find external network if any, and details function get_external_net () { network_ids=($(neutron net-list|grep -v "+"|grep -v name|awk '{print $2}')) @@ -71,8 +66,7 @@ function get_external_net () { fi } -wget https://git.opnfv.org/cgit/copper/plain/components/congress/install/bash/setenv.sh -O ~/setenv.sh -source ~/setenv.sh +source $1 echo "$0: Create cirros-0.3.3-x86_64 image" if [[ -z $(openstack image list | awk "/ cirros-0.3.3-x86_64 / { print \$2 }") ]]; then |