[LU-282] Some tests in the framework do not properly mark their beginning and end. For example test_27b in sanity. Created: 05/May/11  Updated: 16/Aug/17  Resolved: 19/Jul/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0, Lustre 1.8.6
Fix Version/s: Lustre 2.10.1, Lustre 2.11.0

Type: Bug Priority: Minor
Reporter: Chris Gearing (Inactive) Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 6085

 Description   

Problem:
Some tests in the framework do not correctly use run_test at the beginning meaning they are not logged.

For example below test 27b is just calling log at the beginning.

test_27a() {
echo '== stripe sanity =============================================='
mkdir -p $DIR/d27 || error "mkdir failed"
$GETSTRIPE $DIR/d27
$SETSTRIPE $DIR/d27/f0 -c 1 || error "lstripe failed"
$CHECKSTAT -t file $DIR/d27/f0 || error "checkstat failed"
pass
log "== test 27b: write to one stripe file ========================="
cp /etc/hosts $DIR/d27/f0 || error
}
run_test 27a "one stripe file =================================="

These need to be fixed up.

Solution:
To find all the incorrect tests will prove dificult, if they take the format above then a grep can find them, this incorrect logs also cause misshapend names in the autotest logs. Once found they can easily be normalised. Changes made will need to apply to 2.1 and 1.8



 Comments   
Comment by Gerrit Updater [ 29/May/17 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/27322
Subject: LU-282 tests: remove extra logging from sanity 27
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 9e8c9cf3e3b4d25ca708e74e8c65384b9f96eb8d

Comment by Gerrit Updater [ 19/Jul/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27322/
Subject: LU-282 tests: remove extra logging from sanity 27
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f0795a24fd79e2cf2c2dccc1a2b510fabd9ddacf

Comment by Peter Jones [ 19/Jul/17 ]

Landed for 2.11

Comment by Gerrit Updater [ 14/Aug/17 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/28521
Subject: LU-282 tests: remove extra logging from sanity 27
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: ead1d85133db1cea9b64cfa69f33a1ec924cf7c1

Comment by Gerrit Updater [ 16/Aug/17 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/28521/
Subject: LU-282 tests: remove extra logging from sanity 27
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 6b317f99a4d26a1477fccc5e1a74e7704bc5745b

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