-
Notifications
You must be signed in to change notification settings - Fork 1
DAOS-11624 test: Adding support for the Test-storage-tier pragma #355
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
Adding support for passing the Test-storage-tier build parameter or commit pragma to launch.py via its --storage_tier argument. Signed-off-by: Phil Henderson <phillip.henderson@intel.com>
vars/parseStageInfo.groovy
Outdated
if (ftest_arg_storage_tier) { | ||
result['ftest_arg'] += ' --storage_tier=' + ftest_arg_storage_tier | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth mentioning that this could be made more succinct with:
if (ftest_arg_storage_tier) { | |
result['ftest_arg'] += ' --storage_tier=' + ftest_arg_storage_tier | |
} | |
result['ftest_arg'] += ftest_arg_storage_tier ? ' --storage_tier=' + ftest_arg_storage_tier : '' |
Or that a function could be written to make all of this more DRY, now that it's evident that it's proliferating. I.e.
String get_param_or_pragma(param, pragma, arg) {
String res = params.$param ?: cachedCommitPragma(
pragma + result['pragma_suffix'], cachedCommitPragma(pragma, null))
return res ? ' --' + arg + '= ' + res : ''
}
result['ftest_arg'] += get_param_or_pragma('TestStorageTier', 'Test-storage-tier', '--storage_tier')
And of course using the above for all of the other param-or-pragma values that are built into result['ftest_arg']
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I've added this change.
Signed-off-by: Phil Henderson <phillip.henderson@intel.com>
Signed-off-by: Phil Henderson <phillip.henderson@intel.com>
Signed-off-by: Phil Henderson <phillip.henderson@intel.com>
Signed-off-by: Phil Henderson <phillip.henderson@intel.com>
Adding support for passing the Test-storage-tier build parameter or commit pragma to launch.py via its --storage_tier argument.
Signed-off-by: Phil Henderson phillip.henderson@intel.com