Whamcloud - gitweb
LU-16663 tests: use python to compare YAML files 07/51507/6
authorJames Simmons <jsimmons@infradead.org>
Tue, 11 Jul 2023 17:28:13 +0000 (13:28 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jul 2023 07:20:19 +0000 (07:20 +0000)
commit1ea6aa842e622311406ab7a4c4acf136df6e609a
tree18b9b2f2f348d4492690d066614e210ac0ce23ec
parent765e59d37dc2b4c85e9bdaea2765c9023226778b
LU-16663 tests: use python to compare YAML files

For the sanity-lnet test we often compare different YAML files.
This is done with diff which is the wrong tool since two YAML
files that are the same can have different indentations. The
libyaml maintainer states using python tools for this is the
proper supported way to do this.

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: Ie0ef623e8ec729aaad862fc3f33eb0a3b4172fad
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51507
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Feng Lei <flei@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-lnet.sh
lustre/tests/test-framework.sh