testing: Load testing.conf.local from the same directory as testing.conf
authorTobias Brunner <tobias@strongswan.org>
Thu, 26 Sep 2013 15:00:21 +0000 (17:00 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 11 Oct 2013 13:45:42 +0000 (15:45 +0200)
testing/testing.conf

index 4b30ee0..1e691f8 100644 (file)
 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 # for more details.
 
-if [ -f testing.conf.local ]
+TESTINGDIR=$(dirname `readlink -f ${BASH_SOURCE[0]}`)
+if [ -f $TESTINGDIR/testing.conf.local ]
 then
-       . testing.conf.local
+       . $TESTINGDIR/testing.conf.local
 fi
 
 # Root directory of testing