Mercurial > hg
changeset 36163:068f520754ca
tests: remove use of bashism $RANDOM to fix test-narrow.t on non-bash shells
This test passed on our workstations, including on Macs, so we never
noticed, but it fails on both the Linux and FreeBSD buildbots. Today I
learned about a bash feature, wherein $RANDOM gives a random int every
time you read it.
check-code rule to follow.
Differential Revision: https://phab.mercurial-scm.org/D2236
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Feb 2018 17:58:40 -0500 |
parents | 4224f26c0d35 |
children | c38e9248f531 |
files | tests/test-narrow.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-narrow.t Tue Feb 13 14:39:02 2018 -0500 +++ b/tests/test-narrow.t Tue Feb 13 17:58:40 2018 -0500 @@ -51,7 +51,7 @@ [255] Names with '.' in them are OK. - $ hg clone --narrow ssh://user@dummy/master $RANDOM --include a/.b/c + $ hg clone --narrow ssh://user@dummy/master should-work --include a/.b/c requesting all changes adding changesets adding manifests