Mercurial > hg-stable
changeset 37079:66d478064d5f
test-strip-narrow: adjust bundle removal for Windows test stability
MSYS was mangling $TESTTMP to C:\\Users\\...\\test-narrow-strip.t-flat/, which
caused `rm` to fail. The -f was suppressing -ENOENT, so the only clue something
was wrong was when 2 bundles were applied via `hg unbundle` on line 91, instead
of just 1. This changed the text output of `hg unbundle`.
The first `rm` wasn't causing an issue, but is changed for consistency with the
rest of the file.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 21 Mar 2018 22:36:26 -0400 |
parents | 46859b437697 |
children | 1e30a26a65d0 |
files | tests/test-narrow-strip.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-narrow-strip.t Thu Mar 15 21:38:57 2018 +0900 +++ b/tests/test-narrow-strip.t Wed Mar 21 22:36:26 2018 -0400 @@ -55,7 +55,7 @@ $ hg co -r 'desc("modify inside")' 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ rm -f $TESTTMP/narrow/.hg/strip-backup/*-backup.hg + $ rm -f .hg/strip-backup/*-backup.hg $ hg strip . 1 files updated, 0 files merged, 0 files removed, 0 files unresolved saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-backup.hg (glob) @@ -84,7 +84,7 @@ inside\x006a8bc41df94075d501f9740587a0c0e13c170dc5t (esc) (tree !) outside\x00255c2627ebdd3c7dcaa6945246f9b9f02bd45a09t (esc) (tree !) - $ rm -f $TESTTMP/narrow/.hg/strip-backup/*-backup.hg + $ rm -f .hg/strip-backup/*-backup.hg $ hg strip . 0 files updated, 0 files merged, 0 files removed, 0 files unresolved saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-backup.hg (glob)