@@ -48,7 +48,7 @@ def run_wedges(self) -> dict:
48
48
for wedge_name , wedge in self .test_config .get ('wedges' , {}).items ():
49
49
# Test name is based on main test name and wedge name
50
50
test_name = f"{ self .test_config .get ('name' )} -{ wedge_name } "
51
- out_file = self .get_output_filename (test_name )
51
+ out_file , testbasename = self .get_output_filename (test_name )
52
52
53
53
# Remove it, so if the new run fails to create anything
54
54
# we are not accidently using the old one.
@@ -101,7 +101,8 @@ def run_wedges(self) -> dict:
101
101
test_meta ['command' ] = cmd
102
102
test_meta ['encode_arguments' ] = wedge
103
103
test_meta ['description' ] = self .test_config .get ('description' )
104
-
104
+ test_meta ['outputfile' ] = str (out_file )
105
+ test_meta ['testbasename' ] = testbasename
105
106
result_meta = test_meta .setdefault ('results' , {})
106
107
result_meta ['completed_utc' ] = \
107
108
datetime .now (timezone .utc ).isoformat ()
@@ -172,15 +173,17 @@ def get_source_path(self) -> Tuple[pathlib.Path, str]:
172
173
173
174
return path , symbol
174
175
175
- def get_output_filename (self , test_name : str ) -> pathlib .Path :
176
+ def get_output_filename (self , test_name : str ) -> Tuple [ pathlib .Path , str ] :
176
177
source_path , symbol = self .get_source_path ()
177
178
stem = source_path .stem .replace (symbol , '' )
178
179
if stem [- 1 ] == "." :
179
180
stem = stem [:- 1 ]
180
181
182
+ testbasename = f"{ stem } -{ test_name } "
183
+
181
184
out_file = self .destination .absolute ().joinpath (
182
- f"{ stem } - { test_name } { self .test_config .get ('suffix' )} "
185
+ f"{ testbasename } { self .test_config .get ('suffix' )} "
183
186
)
184
187
185
- return out_file
188
+ return out_file , testbasename
186
189
0 commit comments