tests: remove use of bashism $RANDOM to fix test-narrow.t on non-bash shells
authorAugie Fackler <augie@google.com>
Tue, 13 Feb 2018 17:58:40 -0500
changeset 36163 068f520754ca
parent 36162 4224f26c0d35
child 36164 c38e9248f531
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
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