Repository navigation
test: fix statix dev-shell parity check (--help, no top-level --version) (#792) - #793
Merged
Merged
Conversation
statix has no top-level version flag (`--version` exits 2, no `-V`); it is a subcommand CLI. #777 added statix to devTools, so test_each_tool_runs_in_devshell failed invoking `statix --version`. Override to `--help` (exits 0), matching the existing expect/tmux overrides — the check only asserts the binary is runnable. Refs: #792
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#777 added
statixto thedevToolsSSoT, butstatixhas no top-level versionflag (
--versionexits 2 with "unexpected argument"; no-V) — it is asubcommand CLI. So
tests/test_flake_devshell.py::test_each_tool_runs_in_devshell(which invokes each tool with a version flag) fails on
statix.Fix: add a
VERSION_FLAG_OVERRIDESentrystatix: ["--help"](exits 0), matchingthe existing
expect/tmuxoverrides. The check only asserts the binary isrunnable in the dev-shell.
Not previously CI-gated —
project-checksruns this file only with a-kfilterthat excludes
test_each_tool_runs_in_devshell, so the regression was latent.Verified:
nix develop -c statix --helpexits 0.Refs: #792