Whamcloud - gitweb
LU-12766 test: convert time to seconds properly 59/41259/4
authorWang Shilong <wshilong@ddn.com>
Mon, 18 Jan 2021 02:26:31 +0000 (10:26 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 08:22:57 +0000 (08:22 +0000)
commit1a2b381616b372efb5e386ef5fff3aa2f76873a4
treef341940c8f0380362352cc49e64934f46b036ca2
parentd498d1b9cc1bd199e97af3817396fdcada44d655
LU-12766 test: convert time to seconds properly

According to test logs, grace time could be 3m56s,
and it will be converted to 21305s by wrongly which
caused timeout of test sytem.

Actually, grace time could be something like 1w2d3h4m5s
Fix calculations for this.

Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I1c02e83f5ec15de2a4a6b312dd6e36b55dd4a7bc
Reviewed-on: https://review.whamcloud.com/41259
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh