From: robert.read Date: Thu, 5 Jun 2008 23:08:22 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_50~402 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=6b901e78ae20b0289b7493ec60f623357631f114;ds=sidebyside Branch HEAD b=15928 i=grev Reset the current directory after the each test completes. --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index bd3afae..c0ee4c5 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -104,6 +104,7 @@ init_test_env() { [ ! -f "$LSVCGSSD" ] && export LSVCGSSD=$(which lsvcgssd) export KRB5DIR=${KRB5DIR:-"/usr/kerberos"} export DIR2 + export SAVE_PWD=${SAVE_PWD:-$LUSTRE/tests} if [ "$ACCEPTOR_PORT" ]; then export PORT_OPT="--port $ACCEPTOR_PORT" @@ -1561,6 +1562,7 @@ run_one() { export TESTNAME=test_$testnum test_${testnum} || error "test_$testnum failed with $?" #check_mds + cd $SAVE_PWD reset_fail_loc check_grant ${testnum} || error "check_grant $testnum failed with $?" [ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && \ @@ -1571,7 +1573,6 @@ run_one() { unset TESTNAME unset tdir umask $SAVE_UMASK - cd $SAVE_PWD $CLEANUP }