Whamcloud - gitweb
LU-13981 tests: use $TRUNCATE consistently and correctly. 05/40005/2
authorMr NeilBrown <neilb@suse.de>
Wed, 23 Sep 2020 05:11:53 +0000 (15:11 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Oct 2020 05:46:35 +0000 (05:46 +0000)
commitc7fbae54c65a826e84b18723720507d6ea855b7f
tree66129c734b0ca65937a6c28c0580b8e38997c55a
parent5176c0494338de34be9b2bc35e55f91daaab67a6
LU-13981 tests: use $TRUNCATE consistently and correctly.

Two changes:
 1/ tests should should always use $TRUNCATE rather than just
    "truncate" to ensure the tests/truncate programs is used
    rather than anything in /bin /usr/bin.  This might not
    be needed in practice, but it is good to be consistent.

 2/ The arguments provided should match what tests/truncate
    expects - "filename size".  Using "-s size filename"
    as expected by /usr/bin/truncate is confusing and
    error prone.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ic0adc0148ea0ff625695dbfc4cf339d0eca70241
Reviewed-on: https://review.whamcloud.com/40005
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-dom.sh
lustre/tests/sanity.sh