From 7889a3e5df914f70d4b405779f9d04251c80a5d5 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Thu, 20 Feb 2020 21:22:55 +0300 Subject: [PATCH] LU-13273 tests: run_ior() parameters order fix IOR requires particular options to be specified before script file option. Otherwise those options make no effect. After script file processing any options which change initialTestParams values have no effect because test set is already created based on initialTestParams initialized and modified with preceding options. To have initialTestParams->testFileName equal to the parameters order should be: -o -f With the order -f -o initialTestParams->testFileName is equal to default value "testFile" set in init_IOR_Param_t. Fixes: 2d7419478e79 (LU-11078 tests: customise run_ior()) Test-Parameters: trivial Test-Parameters: testlist=parallel-scale envdefinitions=ONLY=iorssf Cray-bug-id: LUS-7734 Signed-off-by: Elena Gryaznova Reviewed-by: Vladimir Saveliev Reviewed-by: Vitaly Fertman Change-Id: I16a797466355c69e655259aaf8d9a3ae69d4a31d Reviewed-on: https://review.whamcloud.com/37651 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Vladimir Saveliev Reviewed-by: Oleg Drokin --- lustre/tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index 50ff899..4df176a 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -645,7 +645,7 @@ run_ior() { local cmd if [ -n "$ior_custom_params" ]; then - cmd="$IOR $ior_custom_params -o $testdir/iorData" + cmd="$IOR -o $testdir/iorData $ior_custom_params" else cmd="$IOR -a $ior_type -b ${ior_blockSize}${ior_blockUnit} \ -o $testdir/iorData -t $ior_xferSize -v -C -w -r -W \ -- 1.8.3.1