Skip to content

Commit 3b7edd7

Browse files
committed
fix(tests): call other tests scripts in local dir by explicit path
1 parent 9bc583c commit 3b7edd7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/bin/destroy-all-vagrants.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ VMS=$(vagrant global-status | grep deis | awk '{ print $5 }')
88
for dir in $VMS; do
99
cd $dir && vagrant destroy --force
1010
done
11+
rm -rf $HOME/VirtualBox\ VMs/deis*

tests/bin/test-integration.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Preps a test environment and runs `make test-integration` with single-node vagrant.
44

55
echo Testing ${DEIS_TEST_APP?}...
6+
THIS_DIR=$(cd $(dirname $0); pwd) # absolute path
67

78
# Environment reset and configuration
89
rm -rf ~/.deis ~/.fleetctl ~/.ssh/known_hosts
@@ -13,7 +14,7 @@ cd ${GOPATH?}/src/github.com/deis/deis
1314
rm -rf tests/example-*
1415

1516
# Vagrant provisioning
16-
tests/bin/halt-all-vagrant.sh
17+
$THIS_DIR/halt-all-vagrants.sh
1718
vagrant destroy --force
1819
vagrant up --provider virtualbox --provision
1920

0 commit comments

Comments
 (0)