Show TEST_NA failure in yellow

TEST_NA is different from normal failure. Let's make it yellow to
distinguish them.

BUG=None
TEST=Check TEST_NA failure is shown in yellow

Change-Id: If7639c9128dabfe0b3f2841d4bc79c7f93117e23
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/51276
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
diff --git a/utils_py/local_dash/dash_template/static/css/default.css b/utils_py/local_dash/dash_template/static/css/default.css
index 933c06d..3de250e 100644
--- a/utils_py/local_dash/dash_template/static/css/default.css
+++ b/utils_py/local_dash/dash_template/static/css/default.css
@@ -371,6 +371,12 @@
   border-color: #A77272;
 }
 
+.testna {
+  color: #FFFFFF;
+  background-color: #F5E269;
+  border-color: #BFB052;
+}
+
 .warnings {
   color: #FFFFFF;
   background-color: #ffc343;
diff --git a/utils_py/local_dash/dash_template/views/test_view.tpl b/utils_py/local_dash/dash_template/views/test_view.tpl
index b368d19..76dca67 100644
--- a/utils_py/local_dash/dash_template/views/test_view.tpl
+++ b/utils_py/local_dash/dash_template/views/test_view.tpl
@@ -19,6 +19,8 @@
             title='All tests passed'>Passed</td>
         <td class='legend failure'
             title='There is a new failure. Take a look!'>Failed</td>
+        <td class='legend testna'
+            title='The test is not applicable.'>Test N/A</td>
         <td class='legend notstarted'
             title='Test not run.'>No&nbsp;data</td>
       </tr>
@@ -133,7 +135,11 @@
                             {{!dut_info}}
                           </span>
                         %else:
-                          class="info DevSlaveBox failure">
+                          %if test_result_dict.get('reason', 'no reason')[8:15] == 'TEST_NA':
+                            class="info DevSlaveBox testna">
+                          %else:
+                            class="info DevSlaveBox failure">
+			  %end
                           <span>
                               <b>{{test_name}}</b><br>
                             {{!dut_info}}