[Pvfs2-cvs] commit by robl in pvfs2-1/test/automated: testscrpt.sh

CVS commit program cvs at parl.clemson.edu
Wed Nov 29 12:20:51 EST 2006


Update of /projects/cvsroot/pvfs2-1/test/automated
In directory parlweb1:/tmp/cvs-serv26767

Modified Files:
	testscrpt.sh 
Log Message:
work it so we can source the local-overrides no matter where someone invokes
the test script.


Index: testscrpt.sh
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/test/automated/testscrpt.sh,v
diff -u -w -p -u -r1.73 -r1.74
--- testscrpt.sh	28 Nov 2006 17:41:28 -0000	1.73
+++ testscrpt.sh	29 Nov 2006 17:20:51 -0000	1.74
@@ -12,8 +12,10 @@ export PVFS2_DEST=/tmp/pvfs2-nightly
 export PVFS2_MOUNTPOINT=/pvfs2-nightly
 export EXTRA_TESTS=${HOME}/src/benchmarks
 
-
-[ -f nightly-tests.cfg ] && . nightly-tests.cfg
+# look for a 'nightly-test.cfg' in the same directory as this script
+if [ -f $(cd `dirname $0`; pwd)/nightly-tests.cfg ] ; then 
+	. $(cd `dirname $0`; pwd)/nightly-tests.cfg
+fi
 
 
 # need to make this a command line arugment:
@@ -92,7 +94,7 @@ teardown_vfs() {
 
 setup_vfs() {
 	sudo /sbin/insmod ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/lib/modules/`uname -r`/kernel/fs/pvfs2/pvfs2.ko
-	sudo ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client 
+	sudo ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client \
 		-p ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core \
 		-L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log
 	sudo chmod 644 ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log



More information about the Pvfs2-cvs mailing list