This is an archive of the discontinued Mercurial Phabricator instance.

tests: remove use of bashism $RANDOM to fix test-narrow.t on non-bash shells
ClosedPublic

Authored by durin42 on Feb 13 2018, 6:02 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Feb 13 2018, 6:02 PM
martinvonz accepted this revision.Feb 13 2018, 6:26 PM
This revision is now accepted and ready to land.Feb 13 2018, 6:26 PM
This revision was automatically updated to reflect the committed changes.