Project

General

Profile

Actions

Feature #2206

closed

osmo-gsm-tester should write to a log file, not only stdout

Added by neels almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
-
Start date:
04/27/2017
Due date:
% Done:

100%

Spec Reference:

Description

For manual invocations, it does make sense to output the log on stdout, but that should only be in addition to an actual log file written to each run dir that is created to run tests in.

Add a logging target to osmo-gsm-tester.py for each run dir -- possibly in trial.py, and remove the logging target when such a trial run is done. Make sure that results of all suite runs are summarized at the end of a trial log before it is closed.

Added bonus: while the jenkins job runs and waits for osmo-gsm-tester to complete, run an ssh tail on the log file produced, so that we can see the test log continuously on the jenkins web site. (the old osmo-gsm-tester used to do that, IIRC.)


Related issues

Related to OsmoGSMTester - Feature #2205: osmo-gsm-tester should tell jenkins where to find test result filesClosed04/27/2017

Actions
Actions #1

Updated by neels almost 7 years ago

See class LogTarget in osmo_gsm_tester/log.py: A default log target to log to stdout is created on the line 197 by targets = [ LogTarget() ]. We should add another target to that list for each trial run. Maybe this needs explicit functions in log.py to add/remove a log target? (maybe not though.)

something like:

class Trial:
  def __enter__(self):
    self.log_target = LogTarget(output=self.log_file())
    log.targets.append(self.log_target)
    [...]

  def __exit__(self,...):
    [...]
    log.targets.remove(self.log_target)

Actions #2

Updated by neels almost 7 years ago

  • Related to Feature #2205: osmo-gsm-tester should tell jenkins where to find test result files added
Actions #3

Updated by neels almost 7 years ago

  • Priority changed from High to Urgent
Actions #4

Updated by neels almost 7 years ago

  • Status changed from New to In Progress
  • Assignee changed from 118 to neels
Actions #5

Updated by neels almost 7 years ago

  • % Done changed from 0 to 90

Implemented https://gerrit.osmocom.org/2510, waiting for merge

Actions #6

Updated by neels almost 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

writes both a debug log file and a brief log file.

Actions #7

Updated by laforge over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)