@@ -1082,11 +1082,11 @@ def _para_test_step(self, parallel=1):
1082
1082
basedir = self .final_dir
1083
1083
1084
1084
# From grep -E "^[A-Z]+: " LOG_FILE | cut -d: -f1 | sort | uniq
1085
- OUTCOMES_LOG = [
1085
+ OUTCOME_FAIL = [
1086
1086
'FAIL' ,
1087
1087
'TIMEOUT' ,
1088
1088
]
1089
- # OUTCOMES_OK = [
1089
+ # OUTCOME_OK = [
1090
1090
# 'PASS',
1091
1091
# 'UNSUPPORTED',
1092
1092
# 'XFAIL',
@@ -1114,7 +1114,7 @@ def _para_test_step(self, parallel=1):
1114
1114
failed_pattern_matches = 0
1115
1115
if ignore_patterns :
1116
1116
for line in out .splitlines ():
1117
- if any (line .startswith (f'{ x } : ' ) for x in OUTCOMES_LOG ):
1117
+ if any (line .startswith (f'{ x } : ' ) for x in OUTCOME_FAIL ):
1118
1118
if any (patt in line for patt in ignore_patterns ):
1119
1119
self .log .info ("Ignoring test failure: %s" , line )
1120
1120
ignored_pattern_matches += 1
@@ -1144,7 +1144,7 @@ def _para_test_step(self, parallel=1):
1144
1144
1145
1145
if num_failed != failed_pattern_matches :
1146
1146
msg = f"Number of failed tests ({ num_failed } ) does not match "
1147
- msg += f"number identified va line-by-line pattern matching: { failed_pattern_matches } "
1147
+ msg += f"Number identified via line-by-line pattern matching: { failed_pattern_matches } "
1148
1148
self .log .warning (msg )
1149
1149
1150
1150
if num_failed is not None and ignored_pattern_matches :
@@ -1160,15 +1160,14 @@ def test_step(self):
1160
1160
self ._create_compiler_config_file (self .final_dir )
1161
1161
1162
1162
# For nvptx64 tests, find out if 'ptxas' exists in $PATH. If not, ignore all nvptx64 test failures
1163
- pxtas_path = which ('ptxas' , on_error = IGNORE )
1164
- if self .nvptx_target_cond and not pxtas_path :
1163
+ if not which ('ptxas' , on_error = IGNORE ):
1165
1164
self .ignore_patterns += ['nvptx64-nvidia-cuda' , 'nvptx64-nvidia-cuda-LTO' ]
1166
1165
self .log .warning ("PTXAS not found in PATH, ignoring failing tests for NVPTX target" )
1167
1166
# If the AMDGPU target is built, tests will be run if libhsa-runtime64.so is found.
1168
1167
# However, this can cause issues if the system libraries are used, due to other loaded modules.
1169
1168
# Therefore, ignore failing tests if ROCr-Runtime is not in the dependencies and
1170
1169
# warn about this in the logs.
1171
- if self . amdgpu_target_cond and 'rocr-runtime' not in self .deps :
1170
+ if 'rocr-runtime' not in self .deps :
1172
1171
self .ignore_patterns += ['amdgcn-amd-amdhsa' ]
1173
1172
self .log .warning ("ROCr-Runtime not in dependencies, ignoring failing tests for AMDGPU target." )
1174
1173
0 commit comments