@@ -729,11 +729,13 @@ def attach(self, subtarget):
729
729
730
730
def output_fd (self , subtarget ):
731
731
scheme_target = dict_get (subtarget , 'scheme' , 'target' , default = False )
732
+ destination = dict_get (subtarget , 'destination' , default = False )
732
733
project_identifier = dict_get (self .target , 'path' , default = False ) + " " + \
733
734
dict_get (subtarget , 'project' , default = "" ).split ('-' )[0 ]
734
735
identifier = ': ' .join (
735
736
[subtarget ['action' ], project_identifier ] +
736
- ([scheme_target ] if scheme_target else [])
737
+ ([scheme_target ] if scheme_target else []) +
738
+ ([destination ] if destination else [])
737
739
)
738
740
log_filename = re .sub (
739
741
r"[^\w\_]+" , "-" , identifier .replace (': ' , '_' )
@@ -902,14 +904,18 @@ def failed(self, identifier, error):
902
904
compatibility = compatible_swift ,
903
905
action_target = dict_get (self .action , 'scheme' , 'target' , default = "Swift Package" )
904
906
)
907
+ if 'destination' in self .action :
908
+ error_str += ', ' + self .action ['destination' ]
905
909
result = ActionResult (Result .XFAIL , error_str )
906
910
else :
907
- error_str = 'FAIL: {project}, {compatibility}, {action_target}, {error} ' .format (
911
+ error_str = 'FAIL: {project}, {compatibility}, {action_target}' .format (
908
912
project = self .project ['path' ],
909
913
compatibility = compatible_swift ,
910
- action_target = dict_get (self .action , 'scheme' , 'target' , default = "Swift Package" ),
911
- error = str (error )
914
+ action_target = dict_get (self .action , 'scheme' , 'target' , default = "Swift Package" )
912
915
)
916
+ if 'destination' in self .action :
917
+ error_str += ', ' + self .action ['destination' ]
918
+ error_str += ', ' + str (error )
913
919
result = ActionResult (Result .FAIL , error_str )
914
920
common .debug_print (error_str )
915
921
return result
@@ -933,13 +939,17 @@ def succeeded(self, identifier):
933
939
compatibility = compatible_swift ,
934
940
action_target = dict_get (self .action , 'scheme' , 'target' , default = "Swift Package" )
935
941
)
942
+ if 'destination' in self .action :
943
+ error_str += ', ' + self .action ['destination' ]
936
944
result = ActionResult (Result .UPASS , error_str )
937
945
else :
938
946
error_str = 'PASS: {project}, {compatibility}, {action_target}' .format (
939
947
project = self .project ['path' ],
940
948
compatibility = compatible_swift ,
941
949
action_target = dict_get (self .action , 'scheme' , 'target' , default = "Swift Package" )
942
950
)
951
+ if 'destination' in self .action :
952
+ error_str += ', ' + self .action ['destination' ]
943
953
result = ActionResult (Result .PASS , error_str )
944
954
common .debug_print (error_str )
945
955
return result
0 commit comments