parser.py: lines 145-148. Since this is the entry point when
invoked from the engine, shouldn't simply using self.logger
work? FWIW, the DC checkpoints used to do something like what
you have here but we changed it to simply use self.logger and
that works just as well.
When I try that and re-run all my unit tests, only the output from one
of the
24 tests is in the log - all the other logging output is missing. Any
idea
what's going on here?
Define the "log" here - a file somewhere? stdout? Since the MP/MW is
just a checkpoint, it doesn't add any log handlers, so there's actually
nowhere for the log output to go.
The Nose test framework adds a log handler or two to capture logging
output for the purposes of debugging tests; if memory serves, it will
only show output from failed tests.
- Keith
I've also noticed that even without making this change, some (but not
all)
of the output from my full set of unit tests is missing from the log.
It seems
that tests that use the InstallEngine are not logging, *if* those
tests are run
after some other tests that log output.
Do you have any examples where you have run more than one unit test
file, with more than one test per file, where all the tests log
something?
It would be very helpful to have a template of how to initialize and
reset
logging, in Engine checkpoints, non-Engine code, and unit tests. Do you
know if such examples exist?
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss