diff options
Diffstat (limited to 'testing/scripts/restore-defaults')
-rwxr-xr-x | testing/scripts/restore-defaults | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/testing/scripts/restore-defaults b/testing/scripts/restore-defaults index 6bad3c5f0..16714db26 100755 --- a/testing/scripts/restore-defaults +++ b/testing/scripts/restore-defaults @@ -14,12 +14,7 @@ # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. -DIR=`dirname $0` - -. $DIR/function.sh - -[ -f $DIR/../testing.conf ] || die "Configuration file 'testing.conf' not found" -. $DIR/../testing.conf +. $PWD/scripts/function.sh ########################################################################## # load-testconfig requires a testname as an argument @@ -27,7 +22,7 @@ DIR=`dirname $0` testname=$1 -HOSTCONFIGDIR=$DIR/../hosts +HOSTCONFIGDIR=$PWD/hosts TESTSDIR=$BUILDDIR/tests [ -d $TESTSDIR ] || die "Directory '$TESTSDIR' not found" |