[LU-13981] tests should be consistent in use of "truncate" Created: 23/Sep/20  Updated: 12/Oct/20  Resolved: 12/Oct/20

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

Type: Bug Priority: Minor
Reporter: Neil Brown Assignee: Neil Brown
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

Some tests uses $TRUNCATE to truncate a file.  This explicitly find .../lustre/tests/truncate.

Other tests use "truncate" and assume it is the same program.

One test (sanity 399b) uses "truncate -s", which assumes /usr/bin/truncate.

I'm not really sure how all this works... test_399b fails for me.

The tests should be consistent in which truncate program is used, and how it is called.



 Comments   
Comment by Gerrit Updater [ 23/Sep/20 ]

Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/40005
Subject: LU-13981 tests: use $TRUNCATE consistently and correctly.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 83685c7389b31067fe2e07960afdcf6a33a6b34a

Comment by Gerrit Updater [ 12/Oct/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40005/
Subject: LU-13981 tests: use $TRUNCATE consistently and correctly.
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c7fbae54c65a826e84b18723720507d6ea855b7f

Comment by Peter Jones [ 12/Oct/20 ]

Landed for 2.14

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