Skip to content

Refactor test runner - #49

Merged
plattfot merged 6 commits into
masterfrom
refactor_runner
Nov 17, 2025
Merged

plattfot merged 6 commits into
masterfrom
refactor_runner

Conversation

@plattfot

Copy link
Copy Markdown
Owner

The main procedure got a bit long and used some imperative notions for setting the exit-code. Refactor it by breaking out the setup, run command, check and clean up code into separate procedures. This allowed to remove the mutation of the exit-status and instead combine the stages using and. Which also allows it to stop as soon as one of the stages fails. Which should generate easier to read error reports.

Reduce the size of the main procedure in the runner.
Reduce the size of the main procedure in the runner.
Reduce the size of the main procedure in the runner.
Reduce the size of the main procedure in the runner.
No need to clutter up the let form where they are just used in one
place each.
And instead exit as soon as something fails.  It will now only return
the value of EXIT_SUCCESS or EXIT_FAILURE depending if it succeeded or
not.
@plattfot plattfot self-assigned this Nov 17, 2025
@plattfot
plattfot merged commit d2965aa into master Nov 17, 2025
3 checks passed
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