# HG changeset patch # User Augie Fackler # Date 1518562720 18000 # Node ID 068f520754ca26efa637d7a84f9327cbb4121dd4 # Parent 4224f26c0d355dde4393331ae244db8fa6baae8b 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 diff -r 4224f26c0d35 -r 068f520754ca tests/test-narrow.t --- 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