# HG changeset patch # User Simon Heimberg # Date 2014-02-03 19:08:58 # Node ID 3fedc29a98bb2fa46669b2cf1ba4e209da6685ed # Parent 9a86b5b8e0d837f0c0bb7f2f1d442f0364089e65 tests: use ls instead of find, all files are in the same directory In this case find has no advantage compared to ls. Descending into directories is unnecessary, because there are none. diff --git a/tests/test-gendoc.t b/tests/test-gendoc.t --- a/tests/test-gendoc.t +++ b/tests/test-gendoc.t @@ -3,7 +3,7 @@ Test document extraction $ "$TESTDIR/hghave" docutils || exit 80 $ HGENCODING=UTF-8 $ export HGENCODING - $ { echo C; find "$TESTDIR/../i18n" -name "*.po" | sort; } | while read PO; do + $ { echo C; ls "$TESTDIR/../i18n"/*.po | sort; } | while read PO; do > LOCALE=`basename "$PO" .po` > echo > echo "% extracting documentation from $LOCALE"