X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2FsanityN.sh;h=576712b9e478104d1a3de21846b17be92d1e97cf;hp=96532b774234fc4a434d761aa5d8390e63ef3690;hb=87d92f4af2b977a811037033c8c7e9f89a5fc32a;hpb=0d48225629bcec79f9f1b350e23711846d60f565 diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 96532b7..576712b 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -24,6 +24,8 @@ TOEXCL=${TOEXCL:-toexcl} TRUNCATE=${TRUNCATE:-truncate} export TMP=${TMP:-/tmp} +. krb5_env.sh + if [ $UID -ne 0 ]; then RUNAS_ID="$UID" RUNAS="" @@ -32,6 +34,13 @@ else RUNAS=${RUNAS:-"runas -u $RUNAS_ID"} fi +if [ `using_krb5_sec $SECURITY` == 'y' ] ; then + start_krb5_kdc || exit 1 + if [ $RUNAS_ID -ne $UID ]; then + $RUNAS ./krb5_refresh_cache.sh || exit 2 + fi +fi + SAVE_PWD=$PWD clean() {