[LU-2711] Code execution between test declarations in suite scripts Created: 30/Jan/13  Updated: 29/Jan/22  Resolved: 29/Jan/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.12.0

Type: Bug Priority: Minor
Reporter: Kyr Shatskyy (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: patch, tests

Severity: 3
Rank (Obsolete): 6604

 Description   

There is present a code execution between test declarations in suite scripts.
For example sanity.sh contains following code:

export ORIG_CSUM_TYPE="`lctl get_param -n osc.*osc-[^mM]*.checksum_type |
                        sed 's/.*\[\(.*\)\].*/\1/g' | head -n1`"
CKSUM_TYPES=${CKSUM_TYPES:-"crc32 adler"}
[ "$ORIG_CSUM_TYPE" = "crc32c" ] && CKSUM_TYPES="$CKSUM_TYPES crc32c"

Or this in sanityn.sh :

}
run_test 39b "mtime change on open, link, unlink, rename  ======"
 
# this should be set to past
TEST_39_MTIME=`date -d "1 year ago" +%s`

# bug 11063
test_39c() {

From one side these codes are executed all the time even if do not want to run it using ONLY parameter for some specific tests. From other side such practice causes generation of unexpected messages in the log files.

This practice is harmfull we need to get rid of it.



 Comments   
Comment by Andreas Dilger [ 05/Feb/13 ]

http://review.whamcloud.com/5213

Comment by Cliff White (Inactive) [ 11/Jul/14 ]

The patch has failing in testing,is it possible for you to update it?

Comment by Kyr Shatskyy (Inactive) [ 21/Oct/15 ]

New patch 27 uploaded after rebase

Comment by Gerrit Updater [ 03/Jan/18 ]

James Nunez (james.a.nunez@intel.com) uploaded a new patch: https://review.whamcloud.com/30703
Subject: LU-2711 tests: conf-sanity clean up environment in test
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a41f9bee93203b1ad16d02b77a9669776a7718a1

Comment by Gerrit Updater [ 02/May/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30703/
Subject: LU-2711 tests: conf-sanity clean up environment in test
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b79a2cc8f2c72f35e38b93d3399fbf04fe6ad740

Generated at Sat Feb 10 01:27:33 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.