tests: use ls instead of find, all files are in the same directory
authorSimon Heimberg <simohe@besonet.ch>
Mon, 03 Feb 2014 20:08:58 +0100
changeset 20390 3fedc29a98bb
parent 20389 9a86b5b8e0d8
child 20391 466e4c574db0
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.
tests/test-gendoc.t
--- a/tests/test-gendoc.t	Mon Jan 27 11:17:07 2014 +0100
+++ b/tests/test-gendoc.t	Mon Feb 03 20:08:58 2014 +0100
@@ -3,7 +3,7 @@
   $ "$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"