[LTP] [PATCH] commands/df01.sh: print more logs when test fails
xuyang2018.jy@fujitsu.com
xuyang2018.jy@fujitsu.com
Fri Jul 8 04:39:33 CEST 2022
Hi Jan
Looks good to me,
Reviewed-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Best Regards
Yang Xu
> Signed-off-by: Jan Stancek<jstancek@redhat.com>
> ---
> testcases/commands/df/df01.sh | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/testcases/commands/df/df01.sh b/testcases/commands/df/df01.sh
> index f74032c962e5..6b20f21d0d74 100755
> --- a/testcases/commands/df/df01.sh
> +++ b/testcases/commands/df/df01.sh
> @@ -103,6 +103,11 @@ df_check()
>
> grep ${TST_DEVICE} output | grep -q "${total}.*${used}"
> if [ $? -ne 0 ]; then
> + echo "total: ${total}, used: ${used}"
> + echo "df saved output:"
> + cat output
> + echo "df output:"
> + $@
> return 1
> fi
> }
More information about the ltp
mailing list