Skip to content

Commit 3e4cb3d

Browse files
committed
tests: update binary mismatch suggestion message with mtimes
1 parent c1c1ea6 commit 3e4cb3d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

git-branchless-lib/src/testing.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,11 @@ stderr:
371371
if subcommand_mtime > main_command_mtime {
372372
result.suggestion(format!(
373373
"\
374-
The modified time for {main_command_exe:?} was before the modified time for
375-
{subcommand_exe:?}, which may indicate that you made changes to the subcommand
376-
without building the main executable. This may cause spurious test failures
377-
because the main executable code is out of date.
374+
The modified time for {main_command_exe:?}: {main_command_mtime:?}
375+
was before the modified time for {subcommand_exe:?}: {subcommand_mtime:?}
376+
which may indicate that you made changes to the subcommand without building the
377+
main executable. This may cause spurious test failures because the main
378+
executable code is out of date.
378379
379380
If so, you should either explicitly run: cargo -p git-branchless
380381
to build the main executable before running this test; or, if it's okay to skip

0 commit comments

Comments
 (0)