Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Enforce deterministic ordering in file walk.
os.walk internally calls os.scandir, whose "entries are yielded in arbitrary order." This breaks (at least on my machine) two unit tests which rely on ordering: 1. test_reprocessing.test_log_collection_tgen 2. test_reprocessing.test_log_collection_torctl This patch fixes the problem by calling sorted on the arbitrarily ordered file names.
- Loading branch information
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters