Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/Progmasoft/Runner/Options.cpp
diff options
context:
space:
mode:
authorLeitwolf2026-11-06 09:34:16 +0300
committerGitHub2026-11-06 09:34:16 +0300
commitf7b935972ae17dfab13195a51f3d1f3b89d77c48 (patch)
tree99c4d53afb06eb1f2479392bdf56d9bc95621166 /src/Progmasoft/Runner/Options.cpp
parent268698be92962247a21a86dda4de2d4267adcf8f (diff)
parentad3633ea59ec491c9694a10307beb7d7189db744 (diff)
downloadcatch3-f7b935972ae17dfab13195a51f3d1f3b89d77c48.tar.gz
Merge pull request #37 from Progmasoft/fix/child-environment
Withhold secret-looking variables from the processes the runner starts
Diffstat (limited to 'src/Progmasoft/Runner/Options.cpp')
-rw-r--r--src/Progmasoft/Runner/Options.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Progmasoft/Runner/Options.cpp b/src/Progmasoft/Runner/Options.cpp
index 383ed68d..13cf4be7 100644
--- a/src/Progmasoft/Runner/Options.cpp
+++ b/src/Progmasoft/Runner/Options.cpp
@@ -361,6 +361,17 @@ namespace Progmasoft::Catch3::Runner
options.isolate = true;
return Status::Ok();
}},
+ {"pass-env",
+ '\0',
+ Takes::kValue,
+ "NAME",
+ "Running",
+ "give the tests the variable NAME, which they do not get "
+ "because its name looks like a secret (repeatable)",
+ [](Options &options, const std::optional<std::string> &value) {
+ options.passedEnvironment.push_back(*value);
+ return Status::Ok();
+ }},
{"timeout",
'\0',
Takes::kValue,