Fix up path issues with vtest+

This commit is contained in:
James Shubin
2016-02-10 19:00:45 -05:00
parent ead025cbe7
commit 89182521de

View File

@@ -1,3 +1,11 @@
#!/bin/bash -ie
# simple test harness for testing mgmt via omv
CWD=`pwd`
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # dir!
cd "$DIR" >/dev/null # work from test directory
# vtest+ tests
vtest+ omv/helloworld.yaml
# return to original dir
cd "$CWD" >/dev/null