On 02/10/10 05:55 PM, Danek Duvall wrote:
Shawn Walker wrote:
imageplan.py:
- line 1103: shouldn't we do the same here as we're now doing for
pkg.actions.ActionErrors?
Are you saying this should be an "except BaseException, e:" and then
ensure we re-raise the original?
I'm not sure why you'd need to name the exception. Wouldn't
except:
self.state = EXECUTED_ERROR
try:
self.__actuators.exec_fail_actuators(self.image)
finally:
raise
do the trick?
A bare raise is supposed to raise active exception in the current scope
according to pydoc, but I don't know what "scope" means here.
In other words, is an exception raised in try/finally block considered
to be in-scope for the raise statement in the finally clause of that
same block?
I don't know...
t_action.py:
- Probably should add a test explicitly for a non-octal mode.
As in "-rwxr-xr-x" or the like? Do we want to allow for and convert
that syntax?
Sorry, I mean something like 0898 or 999.
Ah, yes. I'll do that.
Seems like there's a good deal of copied code between t_pkg_info.py,
t_pkg_install.py, and t_pkg_api_install.py. Can that be cleaned up?
At the moment, I can't think of a good place for it to live. It's
specific to this particular testing scenario, so it didn't seem right
to put it into pkg5unittest.py.
The only thing that comes to mind at the moment is adding a new test
suite that tests the bad package scenario for all of these operations
instead of doing it in each operation's test suite. I'm open to
suggestions...
The only thing that came to mind was to put some routines in
pkg5unittest.py that allowed you to rewrite manifests in specific ways.
Note that when we get manifest signing, though, all this code won't work
any longer. Which makes for an even better reason to consolidate. That
said, I wouldn't spend too much time on it right now.
Yeah, there a lot of things in the test suite that won't work once
signing is in place.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss