[LU-7254] sanity-sec.sh references SLOW before calling init_test_env() Created: 05/Oct/15  Updated: 05/Oct/15  Resolved: 05/Oct/15

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: WC Triage
Resolution: Not a Bug Votes: 0
Labels: tests

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

If SLOW is unset when sanity-sec.sh is run then it effectively defaults to yes. Other tests call init_test_env() before checking SLOW:

#!/bin/bash
#
# Run select tests by setting ONLY, or as arguments to the script.
# Skip specific tests by setting EXCEPT.
#                             

set -e

ONLY=${ONLY:-"$*"}
# bug number for skipped test: 19430 19967 19967                                          
ALWAYS_EXCEPT="                2     5     6    $SANITY_SEC_EXCEPT"
# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!                  

[ "$SLOW" = "no" ] && EXCEPT_SLOW="26"

[ "$ALWAYS_EXCEPT$EXCEPT$EXCEPT_SLOW" ] &&
        echo "Skipping tests: $ALWAYS_EXCEPT $EXCEPT $EXCEPT_SLOW"

SRCDIR=$(dirname $0)
export PATH=$PWD/$SRCDIR:$SRCDIR:$PWD/$SRCDIR/../utils:$PATH:/sbin
export NAME=${NAME:-local}

LUSTRE=${LUSTRE:-$(dirname $0)/..}
. $LUSTRE/tests/test-framework.sh
init_test_env $@
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
init_logging


 Comments   
Comment by John Hammond [ 05/Oct/15 ]

Sorry. I was looking at not yet landed code.

Generated at Sat Feb 10 02:07:19 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.