156 use_luci =
not (gold_properties.local_pixel_tests
or
157 gold_properties.no_luci_auth)
162 status, error = gold_session.RunComparison(
163 name=image_name, png_file=image_path, use_luci=use_luci)
167 if status == status_codes.SUCCESS:
169 if status == status_codes.AUTH_FAILURE:
170 logging.error(
'Gold authentication failed with output %s', error)
171 elif status == status_codes.INIT_FAILURE:
172 logging.error(
'Gold initialization failed with output %s', error)
173 elif status == status_codes.COMPARISON_FAILURE_REMOTE:
174 logging.error(
'Remote comparison failed. See outputted triage links.')
175 elif status == status_codes.COMPARISON_FAILURE_LOCAL:
176 logging.error(
'Local comparison failed. Local diff files:')
179 elif status == status_codes.LOCAL_DIFF_FAILURE:
181 'Local comparison failed and an error occurred during diff '
182 'generation: %s', error)
184 logging.error(
'Local diff files:')
189 'Given unhandled SkiaGoldSession StatusCode %s with error %s', status,