[LU-862] Clean up Test Framework environment initialization routines Created: 16/Nov/11  Updated: 19/Dec/11

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.2.0
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Li Wei (Inactive) Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 10638

 Description   

Originally, I was trying to fix a couple of "which" checks in init_test_env() in Orion to run only on servers. It quickly turned out that server nodes are unknown in init_test_env(), because configuration files are loaded after init_test_env(). Looking through the code to see if a reorder is possible, I was impressed (again) by how messy the configuration file and Test Framework initialization have become. It is difficult to see where the default value of an environment variable is determined. It is sometimes hard to find places to add verifications for environment variables. (See LU-427.)

I think we should clean up at least the initialization code to load configuration files before init_test_env(). Ideally, we could clean up the configuration files as well, so that default values are determined only within init_test_env(), leaving only simple assignments in the configuration files.


Generated at Sat Feb 10 01:11:06 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.