Return find_and_copy result in sorted order.

To facilitate regression testing.

Fixes: 200679083
Test: manual
Change-Id: I9c5ee84a26cecd1c1d770b773539a77f8115fe48
This commit is contained in:
Sasha Smundak
2021-09-21 08:07:49 -07:00
parent e8652d4cd1
commit 3dc68f1750

View File

@@ -401,8 +401,8 @@ def _file_wildcard_exists(file_pattern):
def _find_and_copy(pattern, from_dir, to_dir): def _find_and_copy(pattern, from_dir, to_dir):
"""Return a copy list for the files matching the pattern.""" """Return a copy list for the files matching the pattern."""
return ["%s/%s:%s/%s" % ( return sorted(["%s/%s:%s/%s" % (
from_dir, f, to_dir, f) for f in rblf_find_files(from_dir, pattern, only_files=1)] from_dir, f, to_dir, f) for f in rblf_find_files(from_dir, pattern, only_files=1)])
def _filter_out(pattern, text): def _filter_out(pattern, text):
"""Return all the words from `text' that do not match any word in `pattern'. """Return all the words from `text' that do not match any word in `pattern'.