Mercurial > hg
diff tests/test-sparse.t @ 33337:de324547c751
tests: stabilize on Windows
I'm not sure if the difference on Windows for test-sparse.t is expected or not.
It looks like unless the leading '/' is followed by a drive letter, '/' is
resolved to 'C:/MinGW/msys/1.0'. But both cases abort with "not under root"
instead of just warning.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 08 Jul 2017 14:10:10 -0400 |
parents | 3b7cb3d17137 |
children | 258298f4712b |
line wrap: on
line diff
--- a/tests/test-sparse.t Sat Jun 24 15:29:42 2017 -0700 +++ b/tests/test-sparse.t Sat Jul 08 14:10:10 2017 -0400 @@ -27,12 +27,24 @@ Absolute paths outside the repo should just be rejected +#if no-windows $ hg debugsparse --include /foo/bar warning: paths cannot start with /, ignoring: ['/foo/bar'] $ hg debugsparse --include '$TESTTMP/myrepo/hide' $ hg debugsparse --include '/root' warning: paths cannot start with /, ignoring: ['/root'] +#else +TODO: See if this can be made to fail the same way as on Unix + $ hg debugsparse --include /c/foo/bar + abort: c:/foo/bar not under root '$TESTTMP/myrepo' (glob) + [255] + $ hg debugsparse --include '$TESTTMP/myrepo/hide' + + $ hg debugsparse --include '/c/root' + abort: c:/root not under root '$TESTTMP/myrepo' (glob) + [255] +#endif Verify commiting while sparse includes other files