Whamcloud - gitweb
LU-17265 tests: allow margin for sanity/39r
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Wed, 8 Nov 2023 06:38:07 +0000 (12:08 +0530)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 14 Dec 2023 13:57:26 +0000 (13:57 +0000)
commit2ce69689fad54b7d88d76d45ab62b253fb413cea
tree5096f85b8b20753dcab643875dcd1b7c2c0c1b6b
parent0584b6b2ca5a500fb8df8b736be973532b3e818e
LU-17265 tests: allow margin for sanity/39r

The timestamp may be little outdated due to a gap between
writing a file and checking the timestamp, so take that into
consideration and allow 2 second leniency when comparing
timestamps.

The on-disk inode may also not be flushed from the journal
immediately, so allow some time for it to be updated.

This patch also converts the hex value read via debugfs
to decimal.

Lustre-change: https://review.whamcloud.com/53035
Lustre-commit: c5aa16db172afc9cbf0d4fd2c85261fef1a40d7b

Test-Parameters: trivial testlist=sanity env=ONLY=39r,ONLY_REPEAT=100
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I9e765f9cd572fb25821f9a0401c34209b7c3f574
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53453
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
lustre/tests/sanity.sh