Skip to content
Snippets Groups Projects
Commit 44104994 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Initialize seed in the main function

parent 3a81ebd4
No related branches found
No related tags found
No related merge requests found
......@@ -29,12 +29,6 @@
cleaner_regex = re.compile('[\W_]+', flags=re.UNICODE)
new_paths = []
# For easier testing
seed = os.environ.get("SCMPERF_RANDOM_SEED")
if seed is not None:
random.seed(int(seed))
for path in tracked_paths:
basename = os.path.basename(path)
filename, ext = os.path.splitext(basename)
......@@ -97,6 +91,12 @@
repo_path = args.repository
output_list_path = args.output_list
# For easier testing
seed = os.environ.get("SCMPERF_RANDOM_SEED")
if seed is not None:
random.seed(int(seed))
repo = Repo(repo_path)
tracked_paths = repo.get_tracked_files()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment