summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyszard Knop <ryszard.knop@intel.com>2022-06-28 11:37:04 +0200
committerRyszard Knop <ryszard.knop@intel.com>2022-08-31 13:05:12 +0200
commitb580bae747f0f3e61a2e1c650d48239c9bc9356b (patch)
tree89c303f7fbc51fa72e9bf1ec7f7420c8663cf596
parent1e8c7ae5df177f41dcf0b45889fc9d42e1974aee (diff)
runner: Add help for the --environment flag
-rw-r--r--runner/settings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runner/settings.c b/runner/settings.c
index b57ab0801..cd40208b9 100644
--- a/runner/settings.c
+++ b/runner/settings.c
@@ -286,6 +286,10 @@ static const char *usage_str =
" -b, --blacklist FILENAME\n"
" Exclude all test matching to regexes from FILENAME\n"
" (can be used more than once)\n"
+ " -e, --environment <KEY or KEY=VALUE>\n"
+ " Set an environment variable for the test process.\n"
+ " If only the key is provided, the current value is read\n"
+ " from the runner's environment (and saved for resumes).\n"
" -L, --list-all List all matching subtests instead of running\n"
" --collect-code-cov Enables gcov-based collect of code coverage for tests.\n"
" Requires --collect-script FILENAME\n"