~cr3/checkbox/story554_V2

« back to all changes in this revision

Viewing changes to scripts/pm_log_check

  • Committer: Marc Tardif
  • Date: 2012-05-16 20:26:17 UTC
  • Revision ID: marc.tardif@canonical.com-20120516202617-njpd5xw83a8z02k6
Added required output_log_filename to pm_log_check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
    """
237
237
    parser = ArgumentParser(description='Check power management test case results')
238
238
    parser.add_argument('input_log_filename', metavar='log_filename',
239
 
                        help='Path to the log file that should be used to perform the check')
 
239
                        help='Path to the input log file on which to perform the check')
 
240
    parser.add_argument('output_log_filename', metavar='log_filename',
 
241
                        help='Path to the output log file for the results of the check')
240
242
    log_levels = ['notset', 'debug', 'info', 'warning', 'error', 'critical']
241
243
    parser.add_argument('--log-level', dest='log_level', default='info',
242
244
                        choices=log_levels,
246
248
    args = parser.parse_args()
247
249
    args.log_level = getattr(logging, args.log_level.upper())
248
250
 
249
 
    args.output_log_filename = os.path.abspath(args.input_log_filename).replace('pm_test', os.path.basename(__file__))
250
 
 
251
251
    return args
252
252
 
253
253