summaryrefslogtreecommitdiffstats
path: root/tests/adhoc/smoke01-clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/adhoc/smoke01-clean.sh')
-rw-r--r--tests/adhoc/smoke01-clean.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/adhoc/smoke01-clean.sh b/tests/adhoc/smoke01-clean.sh
index cc8302d..8defb78 100644
--- a/tests/adhoc/smoke01-clean.sh
+++ b/tests/adhoc/smoke01-clean.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2015 Open Platform for NFV Project, Inc. and its contributors
+# Copyright 2015-2016 Open Platform for NFV Project, Inc. and its contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -26,6 +26,10 @@
set -x #echo on
+source ~/admin-openrc.sh <<EOF
+openstack
+EOF
+
instance=$(nova list | awk "/ cirros1 / { print \$2 }")
if [ "$instance" != "" ]; then nova delete $instance
fi