~josvaz/vmbuilder/jenkins_kvm-revert-eth1+

« back to all changes in this revision

Viewing changes to tests/decider.py

  • Committer: Robert C Jennings
  • Date: 2016-09-23 16:47:39 UTC
  • Revision ID: robert.jennings@canonical.com-20160923164739-n0q8h29nt61udx8t
Test decider update to consider UNSTABLE as a failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# grey: waiting
10
10
# grey_anime: executing
11
11
# red: Fail
12
 
 
13
 
# TODO: this should be made usable by other programs...perhaps classing it?
 
12
# yellow: (also) Fail - treating UNSTABLE as the test failure it is
14
13
 
15
14
import argparse
16
15
import json
125
124
            continue
126
125
        if run['result'] == 'SUCCESS':
127
126
            color = 'blue'
 
127
        # Failed builds indicate a Jenkins job failure
128
128
        elif run['result'] == 'FAILURE':
129
129
            color = 'red'
 
130
        # Unstable builds are the result of a test failure
130
131
        elif run['result'] == 'UNSTABLE':
131
 
            color = 'yellow'
 
132
            color = 'red'
132
133
        elif run['result'] == 'ABORTED' or run['result'] is None:
133
134
            color = 'grey'
134
135
        else: