Skip to content

Commit

Permalink
feat(test): report PrepareWorkingDirectoryError reason
Browse files Browse the repository at this point in the history
  • Loading branch information
arxanas committed Jul 7, 2024
1 parent 829a121 commit 0552f9c
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 95 deletions.
1 change: 1 addition & 0 deletions git-branchless-lib/src/git/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl std::fmt::Debug for GitRunInfo {
}

/// Options for invoking Git.
#[derive(Clone)]
pub struct GitRunOpts {
/// If set, a non-zero exit code will be treated as an error.
pub treat_git_failure_as_error: bool,
Expand Down
4 changes: 2 additions & 2 deletions git-branchless-submit/src/phabricator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ Differential Revision: https://phabricator.example.com/D000$(git rev-list --coun
}
};
match test_output.test_status {
TestStatus::CheckoutFailed
TestStatus::CheckoutFailed(_)
| TestStatus::SpawnTestFailed(_)
| TestStatus::TerminatedBySignal
| TestStatus::AlreadyInProgress
Expand Down Expand Up @@ -706,7 +706,7 @@ Differential Revision: https://phabricator.example.com/D000$(git rev-list --coun
.into_iter()
.partition(|(_commit_oid, test_output)| match test_output.test_status {
TestStatus::Passed { .. } => true,
TestStatus::CheckoutFailed
TestStatus::CheckoutFailed(_)
| TestStatus::SpawnTestFailed(_)
| TestStatus::TerminatedBySignal
| TestStatus::AlreadyInProgress
Expand Down
Loading

0 comments on commit 0552f9c

Please sign in to comment.