Constant TEST_INDETERMINATE_EXIT_CODE

Source
pub const TEST_INDETERMINATE_EXIT_CODE: i32 = 125;
Expand description

The exit status to use when a test command intends to skip the provided commit.

This exit code is used officially by several source control systems:

  • Git: “Note that the script (my_script in the above example) should exit with code 0 if the current source code is good/old, and exit with a code between 1 and 127 (inclusive), except 125, if the current source code is bad/new.”
  • Mercurial: “The exit status of the command will be used to mark revisions as good or bad: status 0 means good, 125 means to skip the revision, 127 (command not found) will abort the bisection, and any other non-zero exit status means the revision is bad.”

And it’s become the de-facto standard for custom bisection scripts for other source control systems as well.