Make test scripts callable from any path
This commit is contained in:
committed by
Tobias Brunner
parent
0593b6c975
commit
aafc0a1799
+7
-7
@@ -14,14 +14,14 @@
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
|
||||
DIR=`dirname $0`
|
||||
|
||||
. $PWD/scripts/function.sh
|
||||
|
||||
[ -d $PWD/hosts ] || die "Directory 'hosts' not found"
|
||||
[ -d $PWD/tests ] || die "Directory 'tests' not found"
|
||||
[ -d $BUILDDIR ] || die "Directory '$BUILDDIR' does not exist, please run make-testing first"
|
||||
DIR=$(dirname `readlink -f $0`)
|
||||
. $DIR/testing.conf
|
||||
. $DIR/scripts/function.sh
|
||||
|
||||
[ -d $DIR/hosts ] || die "Directory 'hosts' not found"
|
||||
[ -d $DIR/tests ] || die "Directory 'tests' not found"
|
||||
[ -d $BUILDDIR ] ||
|
||||
die "Directory '$BUILDDIR' does not exist, please run make-testing first"
|
||||
|
||||
##############################################################################
|
||||
# take care of new path and file variables
|
||||
|
||||
Reference in New Issue
Block a user