Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
108741: pkg/cmd/dev: show case how to pass envvars to tests r=chrisseto a=chrisseto Previously, it was difficult to track down the recommended way to pass environment variables, such as `COCKROACH_RANDOM_SEED`, to tests. A developer would have had to notice that `dev` passes arguments after `--` directly to bazel and that bazel supports a `--test_env` flag for `bazel test`. Additionally, grepping the codebase environment test specific environment variables would yield no relevant results. This commit adds an intentionally repetitive example to `dev test` showcasing how to override `COCKROACH_RANDOM_SEED`. This example and presence of `COCKROACH_RANDOM_SEED` will hopefully enhance the discoverability of `dev`'s bazel pass through capabilities and the `--test_env` bazel flag. Epic: none Release note: None Co-authored-by: Chris Seto <[email protected]>
- Loading branch information