Mercurial > evolve
comparison tests/test-discovery-obshashrange-cache.t @ 4267:18ed2a237ab5
tests: fix for POSIX compliance
* Mac ls will exit with a different message and exit code [1], replace with
grep (which is what mercurial tests do)
* POSIX echo has no -n switch, use printf instead
author | Martijn Pieters <mj@octobus.net> |
---|---|
date | Wed, 21 Nov 2018 11:13:21 +0000 |
parents | ea7687a9a4b8 |
children | 62b60fc1983d |
comparison
equal
deleted
inserted
replaced
4266:a4a35fb44af3 | 4267:18ed2a237ab5 |
---|---|
26 $ hg init main | 26 $ hg init main |
27 | 27 |
28 $ hg -R main debugbuilddag '.+7' | 28 $ hg -R main debugbuilddag '.+7' |
29 | 29 |
30 $ for node in `hg -R main log -T '{node}\n'`; do | 30 $ for node in `hg -R main log -T '{node}\n'`; do |
31 > echo -n $node | grep -o . | sort |tr -d "\n" > ancfile | 31 > printf $node | grep -o . | sort |tr -d "\n" > ancfile |
32 > anc=`cat ancfile` | 32 > anc=`cat ancfile` |
33 > rm ancfile | 33 > rm ancfile |
34 > echo "marking $anc as predecessors of $node" | 34 > echo "marking $anc as predecessors of $node" |
35 > hg -R main debugobsolete $anc $node | 35 > hg -R main debugobsolete $anc $node |
36 > done | 36 > done |