File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ class BenchmarkDriver(object):
56
56
"""
57
57
self .args = args
58
58
self .run_env = os .environ .copy ()
59
+
60
+ # Set a constant hash seed. Some tests are highly sensitive to
61
+ # fluctuations in the number of hash collisions.
62
+ self .run_env ["SWIFT_DETERMINISTIC_HASHING" ] = "1"
63
+
59
64
if hasattr (args , 'libdir' ) and args .libdir :
60
65
# The benchmark binaries should pick up the built swift libraries
61
66
# automatically, because their RPATH should point to ../lib/swift
@@ -65,15 +70,13 @@ class BenchmarkDriver(object):
65
70
self .run_env ["DYLD_LIBRARY_PATH" ] = args .libdir
66
71
elif platform .system () == "Linux" :
67
72
self .run_env ["LD_LIBRARY_PATH" ] = args .libdir
73
+
68
74
self ._subprocess = _subprocess or subprocess
69
75
self .all_tests = []
70
76
self .test_number = {}
71
77
self .tests = tests or self ._get_tests ()
72
78
self .parser = parser or LogParser ()
73
79
self .results = {}
74
- # Set a constant hash seed. Some tests are currently sensitive to
75
- # fluctuations in the number of hash collisions.
76
- os .environ ["SWIFT_DETERMINISTIC_HASHING" ] = "1"
77
80
78
81
def _invoke (self , cmd ):
79
82
return self ._subprocess .check_output (
You can’t perform that action at this time.
0 commit comments