Message ID | 20190305062206.25872-1-andrew.donnellan@au1.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] main: Make apply_patch check description more useful | expand |
On 5/3/19 5:22 pm, Andrew Donnellan wrote: > Reformat the apply_patch check description and include the SHA1 of the base > we applied patches on top of. > > Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Series applied to master: 51134175f8894f90f6eba5019c939ad2844d0af0
diff --git a/src/main.rs b/src/main.rs index 9bb195bbd891..5f60cc2293ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -244,10 +244,9 @@ fn test_patch( state: TestState::Success, description: Some( format!( - "{}/{}\n\n{}", + "Successfully applied on branch {} ({})", branch_name.to_string(), - "apply_patch".to_string(), - "Successfully applied".to_string() + commit.id().to_string() ) .to_string(), ), @@ -261,10 +260,9 @@ fn test_patch( state: TestState::Warning, description: Some( format!( - "{}/{}\n\n{}", + "Failed to apply on branch {} ({})", branch_name.to_string(), - "apply_patch".to_string(), - "Patch failed to apply".to_string() + commit.id().to_string() ) .to_string(), ),
Reformat the apply_patch check description and include the SHA1 of the base we applied patches on top of. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> --- src/main.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)