From e9b31faf3008c01e04a9f0e178437eb8823c8077 Mon Sep 17 00:00:00 2001 From: "epoger@google.com" Date: Thu, 14 Feb 2013 20:13:32 +0000 Subject: [PATCH] bench_graph_svg: more sorting to get deterministic results TBR=benchen Review URL: https://codereview.appspot.com/7333045 git-svn-id: http://skia.googlecode.com/svn/trunk@7745 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/bench_graph_svg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bench/bench_graph_svg.py b/bench/bench_graph_svg.py index e6aa2e9056..1bcb7f50c7 100644 --- a/bench/bench_graph_svg.py +++ b/bench/bench_graph_svg.py @@ -106,7 +106,9 @@ def parse_dir(directory, default_settings, oldest_revision, newest_revision, (str, {str, str}, Number, Number) -> {int:[BenchDataPoints]}""" revision_data_points = {} # {revision : [BenchDataPoints]} - for bench_file in os.listdir(directory): + file_list = os.listdir(directory) + file_list.sort() + for bench_file in file_list: file_name_match = re.match('bench_r(\d+)_(\S+)', bench_file) if (file_name_match is None): continue