Skip to content

ci/test.lua: announce configured done_command before running tests - #5956

Open
Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:test-done-notice
Open

Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:test-done-notice

Conversation

@Alistair-Afton

Copy link
Copy Markdown
Contributor

Summary

  • Print the configured done_command before the test run starts
  • A bare positional argument is interpreted as done_command, not a test filter — e.g. test plugins/buildingplan silently runs the entire suite with plugins/buildingplan queued as the post-test command (which then errors as an unrecognized command at the end)
  • The up-front notice makes that misparse immediately visible

Test plan

  • Verified the notice prints when running test -d <dir> -t <pattern> <positional> against a live fortress

A bare positional argument is interpreted as the done_command, not a
test filter, which is easy to misread when invoking the harness by
hand (e.g. 'test plugins/foo' silently runs the entire suite). Print
the configured done_command up front so a misparse is immediately
visible instead of surfacing only after the full suite finishes.
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