Whamcloud - gitweb
LU-16502 lutf: cleanup lutf_start.py, fix bugs 67/49767/3
authorTimothy Day <timday@amazon.com>
Sat, 21 Jan 2023 01:45:05 +0000 (01:45 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Feb 2023 06:05:32 +0000 (06:05 +0000)
commit7fcef255d235dceb3c6a621637778200b61b9391
tree954b00430798e66b1b70b29285aab335282f8a49
parent3cd0bb6968fc3432b7d1641bf0489e4e4b1e809f
LU-16502 lutf: cleanup lutf_start.py, fix bugs

Remove code duplication by adding __check_env_var
method. Use os.environ.get to remove needlessly
verbose try-except blocks. Use __cfg_yaml more,
rather than passing this value explicitly
between methods.

Add check for environment variables, so LUTF
can fail gracefully if the environment is not
set correctly.

Update .gitignore to ignore __pycache__

Fix syntax error in python/infra/lutf.py

Test-Parameters: @lnet
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I16cf114ac4253d22a42399e2f2cb2fad49dd96cb
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49767
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/lutf/.gitignore
lustre/tests/lutf/python/config/lutf_start.py
lustre/tests/lutf/python/infra/lutf.py