Whamcloud - gitweb
LU-17091 tests: check correct return value in lfs_df 85/52285/2
authorLei Feng <flei@whamcloud.com>
Wed, 6 Sep 2023 02:39:49 +0000 (10:39 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 Sep 2023 06:03:18 +0000 (06:03 +0000)
commit58a1c2c3210c4e10e5e55d19a5f357f7c6788f80
tree3c6901082d016d663e3cd466d31dc9eaf48296f9
parent407167f4d18522fb47821030e3b171cbdb7158a0
LU-17091 tests: check correct return value in lfs_df

$? is the return value of last command in a pipe.
We should check the return value of first command 'lfs df'
in this case.

Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanityn
Change-Id: I7daa38f27c878e5195181ed82717cd28ca345dbc
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52285
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/test-framework.sh