Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-746 test: obdfilter-survey FAIL hndls expected >8, have 2
[fs/lustre-release.git]
/
lustre
/
tests
/
performance-sanity.sh
diff --git
a/lustre/tests/performance-sanity.sh
b/lustre/tests/performance-sanity.sh
index
1846fd8
..
fd13747
100644
(file)
--- a/
lustre/tests/performance-sanity.sh
+++ b/
lustre/tests/performance-sanity.sh
@@
-11,6
+11,7
@@
LUSTRE=${LUSTRE:-`dirname $0`/..}
init_test_env $@
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
init_test_env $@
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
+init_logging
[ -x "$MDSRATE" ] || FAIL_ON_ERROR=true error "No mdsrate program. Aborting."
which mpirun > /dev/null 2>&1 || \
[ -x "$MDSRATE" ] || FAIL_ON_ERROR=true error "No mdsrate program. Aborting."
which mpirun > /dev/null 2>&1 || \
@@
-22,6
+23,10
@@
ALWAYS_EXCEPT="1 2 $PERFORMANCE_SANITY_EXCEPT"
build_test_filter
build_test_filter
+get_mpiuser_id $MPI_USER
+MPI_RUNAS=${MPI_RUNAS:-"runas -u $MPI_USER_UID -g $MPI_USER_GID"}
+$GSS_KRB5 && refresh_krb5_tgt $MPI_USER_UID $MPI_USER_GID $MPI_RUNAS
+
# single-IOR-rates
test_1() {
echo "Single client I/O performance as a percentage of raw"
# single-IOR-rates
test_1() {
echo "Single client I/O performance as a percentage of raw"
@@
-76,7
+81,7
@@
test_8() {
}
run_test 8 "getattr large files ======"
}
run_test 8 "getattr large files ======"
-equals_msg `basename $0`: test complete, cleaning up
+complete $(basename $0) $SECONDS
check_and_cleanup_lustre
[ -f "$LOG" ] && cat $LOG || true
check_and_cleanup_lustre
[ -f "$LOG" ] && cat $LOG || true
-[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true
+exit_status