Closed Bug 399879 Opened 17 years ago Closed 17 years ago

Sisyphus: add a -v switch for verbose output in files

Categories

(Testing Graveyard :: Sisyphus, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rcampbell, Assigned: bc)

References

Details

Attachments

(2 files, 2 obsolete files)

Currently, sisyphus outputs the name of the log and redirects output to that logfile. I'd like to have a verbose option where instead of just outputting to the logfile, the output is also tee'd to stdout.

e.g., (in builder.sh) line 114: clean.sh -p $product -b $branch -T $buildtype $extraflag | tee $TEST_LOG 2>&1
Assignee: nobody → bclary
Status: NEW → ASSIGNED
Just to be clear, Do you just want this on the builder.sh output or as an option on all scripts that generate log files?
Summary: Would like to have a -v switch for verbose output in files → Sisyphus: add a -v switch for verbose output in files
I'd like it available on all of the log-file generating scripts.
Attached patch patch to sisyphus scripts (obsolete) — Splinter Review
patches bin/builder.sh, and bin/tester.sh
Attachment #285668 - Flags: review?(rcampbell)
Attached patch patch to js test scripts (obsolete) — Splinter Review
patch to js tests runtests.sh (with minor tag-along patch to test.sh).

This has a problem since runtests.sh uses stdout to collect the names of the log files to be post processed. Using -v will pollute the list of file names since there is no current method of distinguishing the logfiles from the verbose log output.

Rob, I think that changing the display of log file names on stdout to include an identifier allowing the script to strip the verbose output would solve the problem but would require buildbot to strip the identifier from stdout when it picks up the log file names. Buildbot would need something similar if it was attempting to run the tests with verbose.

example:

log: /work/mozilla/mozilla.com/test.mozilla.com/www/results/2007-10-21-19-22-01-0400,js,1.9.0,,linux,martha.bclary.com,checkout.log
Attachment #285670 - Flags: review?
Attachment #285670 - Flags: review? → review?(rcampbell)
adds log: prefix
Attachment #285668 - Attachment is obsolete: true
Attachment #285777 - Flags: review?(rcampbell)
Attachment #285668 - Flags: review?(rcampbell)
adds log: prefix
Attachment #285670 - Attachment is obsolete: true
Attachment #285780 - Flags: review?(rcampbell)
Attachment #285670 - Flags: review?(rcampbell)
Attachment #285777 - Flags: review?(rcampbell) → review+
Attachment #285780 - Flags: review?(rcampbell) → review+
this should work nicely. Thanks!
/cvsroot/mozilla/testing/sisyphus/bin/builder.sh,v  <--  builder.sh
new revision: 1.5; previous revision: 1.4

/cvsroot/mozilla/testing/sisyphus/bin/tester.sh,v  <--  tester.sh
new revision: 1.6; previous revision: 1.5

/cvsroot/mozilla/js/tests/known-failures.pl,v  <--  known-failures.pl
new revision: 1.2; previous revision: 1.1

/cvsroot/mozilla/js/tests/runtests.sh,v  <--  runtests.sh
new revision: 1.3; previous revision: 1.2

/cvsroot/mozilla/js/tests/test.sh,v  <--  test.sh
new revision: 1.5; previous revision: 1.4
done

Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Mass move of Sisyphus bugs to Testing : Sisyphus. Filter on SisyphusMassMove to ignore.
Component: Testing → Sisyphus
Product: Core → Testing
QA Contact: testing → sisyphus
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: