Commit 1b4cf113 authored by Camillo Bruni's avatar Camillo Bruni Committed by Chromium LUCI CQ

[web_test] Always show repro command in results.html

Previously the repro command was only show when the test failed.

Change-Id: Ib7c065fb177b19d0b30083ba38daf0bb4856f8d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2635145Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844524}
parent f27a2019
......@@ -1124,6 +1124,9 @@ const GUI = {
},
translateArtifactsIntoResult: function(artifacts, result, test){
if (artifacts.hasOwnProperty('command'))
test.command = artifacts.command;
if (result != 'FAIL')
return result;
// Check detailed failure type based on artifacts.
......@@ -1138,9 +1141,6 @@ const GUI = {
if (artifacts.hasOwnProperty('reference_file_mismatch'))
test.reference = artifacts.reference_file_mismatch;
if (artifacts.hasOwnProperty('command'))
test.command = artifacts.command;
if (is_image && is_text)
return 'IMAGE+TEXT';
if (is_image)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment