3 # Run select tests by setting ONLY, or as arguments to the script.
4 # Skip specific tests by setting EXCEPT.
11 LUSTRE=${LUSTRE:-$(dirname $0)/..}
12 . $LUSTRE/tests/test-framework.sh
16 # bug number for skipped test:
17 ALWAYS_EXCEPT="$SANITY_COMPR_EXCEPT"
23 check_and_setup_lustre
25 # $RUNAS_ID may get set incorrectly somewhere else
26 if [[ $UID -eq 0 && $RUNAS_ID -eq 0 ]]; then
27 skip_env "\$RUNAS_ID set to 0, but \$UID is also 0!" && exit
29 check_runas_id $RUNAS_ID $RUNAS_GID $RUNAS
31 save_layout_restore_at_exit $MOUNT
32 # Set file system with different layout
33 COMPR_EXTRA_LAYOUT=${COMPR_EXTRA_LAYOUT:-"-E EOF -c 1"}
34 $LFS setstripe $COMPR_EXTRA_LAYOUT $MOUNT
38 always_except LU-16928 56wb
41 SANITY_EXCEPT=$ALWAYS_EXCEPT bash sanity.sh
45 run_test sanity "Run sanity with PFL layout"
55 run_test sanityn "Run sanityn with PFL layout"
57 complete_test $SECONDS
58 check_and_cleanup_lustre
59 declare -a logs=($ONLY)
60 logs=("${logs[@]/#/$TMP/}")
61 exit_status "$(echo "${logs[@]/%/.log}")"