File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,23 @@ def main():
82
82
if not args .skip_runner :
83
83
execute_runner (instance , workspace , configs , args )
84
84
85
- analyze_results (configs , args )
85
+ regressions = analyze_results (configs , args )
86
+
87
+ # Temporary hack to write output to workspace when in CI,
88
+ # regardless of --output passed.
89
+ if 'WORKSPACE' in os .environ :
90
+ workspace = os .environ ['WORKSPACE' ]
91
+ print ("WORKSPACE: %s" % workspace )
92
+ p = os .path .join (workspace , 'comment.md' )
93
+ o = os .path .abspath (os .path .join (os .getcwd (),
94
+ args .output .name ))
95
+ print ("Output written to: %s" % o )
96
+ if o != p :
97
+ print ("Copying %s to %s" % (o , p ))
98
+ args .output .close ()
99
+ shutil .copyfile (o , p )
100
+
101
+ return regressions
86
102
87
103
88
104
def get_sandbox_profile_flags ():
You can’t perform that action at this time.
0 commit comments