Run clean.sh scripts with sudo and set relative path 15/9915/4
authorThomas F Herbert <therbert@redhat.com>
Fri, 12 Feb 2016 21:09:55 +0000 (16:09 -0500)
committerThomas F Herbert <therbert@redhat.com>
Sat, 13 Feb 2016 17:28:27 +0000 (12:28 -0500)
so sudo can find it.
Change to correct directory before running cleanup.

Change-Id: I3a91cb8f25c641b81ef2c62f91b540d7657eeb53
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
build/instack_ovs.sh
ci/buildovs.sh

index 5af6ccf..83b141c 100755 (executable)
@@ -194,7 +194,7 @@ fi
 sudo rm -f /tmp/instack.answers
 
 # ensure that no previous undercloud VMs are running
-clean.sh
+sudo ../ci/clean.sh
 # and rebuild the bare undercloud VMs
 ssh -T ${SSH_OPTIONS[@]} stack@localhost <<EOI
     set -e
index db3ac9b..1164733 100755 (executable)
@@ -87,7 +87,7 @@ BuildAndTestOVS.sh -d -p none -t
 echo "---------------------------------------"
 echo "Cleanup temporary dirs"
 echo
-cd $BUILDDIR
+cd $BUILD_BASE
 
 if [ -d $TMPDIR ]
 then
@@ -112,6 +112,6 @@ fi
 # Destroy VM if one has been deployed. Also remove any local installation of
 # DPDK and OVS
 #
-clean.sh
+sudo ../ci/clean.sh
 
 exit 0