Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.0.0, Lustre 2.1.0, Lustre 1.8.7, Lustre 1.8.6
-
None
-
3
-
9732
Description
auster.sh has the '-c' option to specify the location of an acceptance-small configuration file, however auster.sh doesn't export the corresponding CONFIG variable to test-package scripts which causes them to read the default 'local' configuration file.
Here I specify the configuration file /tmp/polluxp2_multi_node.sh
- ./auster.sh -c /tmp/polluxp2_multi_node.sh sanity --only 1
<snip>
run_suite sanity /opt/cray/lustre-cray_gem_s/default/lib64/lustre/tests/sanity.sh
With 'set -x' set in sanity.sh we can see that it reads the wrong configuration file.
+ . /opt/cray/lustre-cray_gem_s/default/lib64/lustre/tests/cfg/local.sh
With the following change we can see the correct configuration file is read.
diff --git a/lustre/tests/auster.sh b/lustre/tests/auster.sh
index 39f5c62..91dcb7c 100755
— a/lustre/tests/auster.sh
+++ b/lustre/tests/auster.sh
@@ -69,7 +69,7 @@ export ${NAME:=local}
while getopts "c:d
:nkf:g:i:rRslhv" opt
do
case "$opt" in
- c) CONFIG=$OPTARG;;
+ c) export CONFIG=$OPTARG;;
d) test_logs_dir=$OPTARG/$(date +%Y-%m-%d)/$(date +%H%M%S);;
D) test_logs_dir=$OPTARG;;
g) test_group_file=$OPTARG;;
- ./auster.sh -c /tmp/polluxp2_multi_node.sh sanity --only 1
<snip>
run_suite sanity /opt/cray/lustre-cray_gem_s/default/lib64/lustre/tests/sanity.sh
+ . /tmp/polluxp2_multi_node.sh