Whamcloud - gitweb
LU-17091 tests: check correct return value in lfs_df
authorLei Feng <flei@whamcloud.com>
Wed, 6 Sep 2023 02:39:49 +0000 (10:39 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 7 Sep 2023 00:36:54 +0000 (00:36 +0000)
commit0caaf60a4b34f8bcec5fe3776171ffa0c34a1a84
tree02f4845ec1c3c231447f5a95db12c1d478305837
parent0adabc796270fd6c8ef432392e5cb0a0ea5baec2
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.

Lustre-change: https://review.whamcloud.com/52285
Lustre-commit: TBD (from 8d0b87768034a766a301f945b7a51bf3a3cf0c40)

Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanityn
Change-Id: I7daa38f27c878e5195181ed82717cd28ca345dbc
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52291
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/test-framework.sh