Skip to content

test: keep functional runner help available pre-configure#270

Open
Sikkra wants to merge 1 commit into
BitgesellOfficial:masterfrom
Sikkra:bounty/test-runner-help-config
Open

test: keep functional runner help available pre-configure#270
Sikkra wants to merge 1 commit into
BitgesellOfficial:masterfrom
Sikkra:bounty/test-runner-help-config

Conversation

@Sikkra
Copy link
Copy Markdown

@Sikkra Sikkra commented May 19, 2026

test/functional/test_runner.py --help currently crashes before a configured build because it always opens test/config.ini before reaching the help path. That makes the runner's own usage text unavailable in a fresh checkout and prints a traceback instead of a CLI error.

This changes the runner to:

  • print the runner help successfully when test/config.ini is absent
  • explain that per-test help requires ./configure
  • report a clean parser error for non-help invocations without test/config.ini
  • delay temporary test directory creation until after all help-only exits

Verification:

  • python -m py_compile test\functional\test_runner.py
  • python test\functional\test_runner.py --help exits 0 before configure
  • python test\functional\test_runner.py --jobs 1 exits 2 with a clear missing-config message before configure

Bounty reference: #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant