Lines Matching +full:- +full:- +full:oneline
3 # Use of this source code is governed by a BSD-style license that can be
15 completed jobs for the DUT in a given time interval; still-running
23 --until/-u DATE/TIME - Specifies an end time for the search
25 --since/-s DATE/TIME - Specifies a start time for the search
27 --duration/-d HOURS - Specifies the length of the search interval
32 --until - Use the given end time with the default duration.
33 --since - Use the given start time with the default end time.
34 --duration - Use the given duration with the default end time.
38 DATE/TIME values are of the form '2014-11-06 17:21:34'.
42 By default, information is reported for DUTs named as command-line
45 --board/-b BOARD - Only include hosts with the given board.
46 --pool/-p POOL - Only include hosts in the given pool. The user
52 -w/--working - Only include hosts in a working state.
53 -n/--broken - Only include hosts in a non-working state. Hosts
54 with no job history are considered non-working.
69 * With the --working or --broken options, the list of host names
71 * Without those options, the default format is the one-line status
75 -o/--oneline - Use the one-line summary with the --working or
76 --broken options.
77 -f/--full_history - Print detailed per-host job history.
78 -g/--diagnosis - Print the job history surrounding a status
83 $ dut_status chromeos2-row4-rack2-host12
85 chromeos2-row4-rack2-host12 NO 2014-11-06 15:25:29 http://...
91 $ dut_status.py -u '2014-11-06 15:30:00' -d 1 -f chromeos2-row4-rack2-host12
92 chromeos2-row4-rack2-host12
93 2014-11-06 15:25:29 NO http://...
94 2014-11-06 14:44:07 -- http://...
95 2014-11-06 14:42:56 OK http://...
102 '--' Indicates that the job probably didn't change the DUT's
105 to report 'OK', or the first job to report '--'.
128 # _DIAGNOSIS_IDS -
133 status_history.UNKNOWN: '--',
139 # Default time interval for the --duration option when a value isn't
155 @return Returns `True` if the command-line options call for
166 """Print one-line summaries of host history.
168 This function handles the output format of the --oneline option.
175 fmt = '%-30s %-2s %-19s %s'
181 datestr = '---'
182 url = '---'
195 """Print a one-line summary of a job or special task."""
207 This function handles both the default format for --working
208 and --broken options, as well as the output for the
209 --full_history and --diagnosis options. The `arguments`
233 Enforces the rules for the --until, --since, and --duration
248 '--since, --until, and --duration',
257 arguments.since = (arguments.until -
300 """Validate the user-specified list of hosts.
302 Hosts may be specified implicitly with --board or --pool, or
305 * If --board or --pool, or both are specified, individual
323 'with --board or --pool', file=sys.stderr)
344 * If neither --broken nor --working was used, then --oneline
346 * If neither --broken nor --working was used, included both
353 if (not arguments.oneline and not arguments.diagnosis and
355 arguments.oneline = (not arguments.working and
402 epilog='You can specify one or two of --since, --until, '
403 'and --duration, but not all three.')
404 parser.add_argument('-s', '--since', type=status_history.parse_time,
407 'Format: "YYYY-MM-DD HH:MM:SS"'))
408 parser.add_argument('-u', '--until', type=status_history.parse_time,
411 'Format: "YYYY-MM-DD HH:MM:SS" '
413 parser.add_argument('-d', '--duration', type=int,
419 format_group.add_argument('-f', '--full_history', action='store_true',
422 format_group.add_argument('-g', '--diagnosis', action='store_true',
425 format_group.add_argument('-o', '--oneline', action='store_true',
428 parser.add_argument('-w', '--working', action='store_true',
430 parser.add_argument('-n', '--broken', action='store_true',
431 help='List non-working devices by name only')
433 parser.add_argument('-b', '--board',
436 parser.add_argument('-m', '--model',
438 parser.add_argument('-p', '--pool',
442 + ', '.join(constants.Pools.MANAGED_POOLS[:-1])
443 +', or '+ constants.Pools.MANAGED_POOLS[-1] +'.')
447 parser.add_argument('--web',
464 if arguments.oneline: