summaryrefslogtreecommitdiff
path: root/tests/e2e/resource_exhaustion_test.go
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-06-07 22:57:34 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-06-07 22:57:34 -0400
commitf8afb7d5889f5c8b6ea256fd078fa8426d21c7be (patch)
treebb0683f4abdd22886ddb0b748114abff5dfef4d1 /tests/e2e/resource_exhaustion_test.go
parent7010768877c227c9410a06908e4cb3e54db403bd (diff)
feat(cli): introduce explicit run/exec subcommands to prevent typo-execution
Prevent the ambiguity where a mistyped subcommand was interpreted as the target wrapped process. - Introduce `run` and `exec` (alias) subcommands for launching wrapped processes. - Promote internal test commands (`test-ns`, `test-args`, `test-lifecycle`) to explicit subcommands. - Update CLI routing to return an error for unknown subcommands instead of falling back to the default execution path. - Update `README.md` usage examples and all test suites to use the new subcommand structure.
Diffstat (limited to 'tests/e2e/resource_exhaustion_test.go')
-rw-r--r--tests/e2e/resource_exhaustion_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/e2e/resource_exhaustion_test.go b/tests/e2e/resource_exhaustion_test.go
index b5cdaf9..3c8d202 100644
--- a/tests/e2e/resource_exhaustion_test.go
+++ b/tests/e2e/resource_exhaustion_test.go
@@ -37,7 +37,7 @@ Endpoint = 1.1.1.1:51820
// We run a burst of short-lived commands to stress the lock and cleanup logic.
iterations := 50
for i := 0; i < iterations; i++ {
- cmd := exec.Command(binaryPath, "--profile", profile, "--", "true")
+ cmd := exec.Command(binaryPath, "run", "--profile", profile, "--", "true")
cmd.Env = append(os.Environ(),
fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir),
fmt.Sprintf("XDG_CONFIG_HOME=%s", tmpConfigDir),