# HG changeset patch # User Anton Shestakov # Date 1615805118 -28800 # Node ID 0c896e79d9aa98f6509f7577e47966603beb273c # Parent b2d4cc5dff79b42ac92a9bac9f01c59d42754cbc tests: simplify character sorting script Since `greo -o .` doesn't catch line breaks, we can use simple echo instead of printf (or echo -n that was there even before that). Holding the result in a file is also not necessary, not sure why it was done this way. diff -r b2d4cc5dff79 -r 0c896e79d9aa tests/test-discovery-obshashrange-cache.t --- a/tests/test-discovery-obshashrange-cache.t Sun Mar 14 16:56:16 2021 +0800 +++ b/tests/test-discovery-obshashrange-cache.t Mon Mar 15 18:45:18 2021 +0800 @@ -26,9 +26,7 @@ $ hg -R main debugbuilddag '.+7' $ for node in `hg -R main log -T '{node}\n'`; do - > printf $node | grep -o . | sort |tr -d "\n" > ancfile - > anc=`cat ancfile` - > rm ancfile + > anc=`echo $node | grep -o . | sort | tr -d "\n"` > echo "marking $anc as predecessors of $node" > hg -R main debugobsolete $anc $node > done