@@ -1039,7 +1039,10 @@ def _importSampleValues(self, session, tests_data, run, config):
1039
1039
1040
1040
field_dict = dict ([(f .name , f ) for f in self .sample_fields ])
1041
1041
all_samples_to_add = []
1042
- is_profile_only = lambda td : len (td ) == 2 and 'profile' in td
1042
+
1043
+ def is_profile_only (td ):
1044
+ return len (td ) == 2 and 'profile' in td
1045
+
1043
1046
for test_data in tests_data :
1044
1047
if is_profile_only (test_data ):
1045
1048
# Ignore for now profile data without other metrics
@@ -1078,8 +1081,11 @@ def _importSampleValues(self, session, tests_data, run, config):
1078
1081
continue
1079
1082
name = test_data ['name' ]
1080
1083
test = test_cache .get (name )
1081
- tests = [test_cache [test_name ] for test_name in test_cache \
1082
- if test_name .startswith (name + '.test:' )]
1084
+ tests = [
1085
+ test_cache [test_name ]
1086
+ for test_name in test_cache
1087
+ if test_name .startswith (name + '.test:' )
1088
+ ]
1083
1089
if test is not None :
1084
1090
tests .append (test )
1085
1091
@@ -1095,10 +1101,10 @@ def _importSampleValues(self, session, tests_data, run, config):
1095
1101
count += 1
1096
1102
sample_exist = True
1097
1103
else :
1098
- logger .warning ('Test %s already contains the profile data. ' \
1099
- 'Profile %s was ignored.' , test .name , name )
1104
+ logger .warning ('Test %s already contains the profile data. '
1105
+ 'Profile %s was ignored.' , test .name , name )
1100
1106
if not sample_exist :
1101
- logger .warning ('The test %s is invalid. It contains the profile, ' \
1107
+ logger .warning ('The test %s is invalid. It contains the profile, '
1102
1108
'but no any samples. Consider removing it.' , test .name )
1103
1109
if count == 0 :
1104
1110
logger .warning ('Cannot find test(s) for the profile %s' , name )
0 commit comments