]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
SystemExit is ok for child processes
authorAngus Lees <gus@inodes.org>
Tue, 21 Apr 2015 01:00:04 +0000 (11:00 +1000)
committerAngus Lees <gus@inodes.org>
Wed, 13 May 2015 06:56:52 +0000 (16:56 +1000)
commitd2703d81f086a9c3f7bb822046794668dde8ea6b
tree70d50642b9fbdaf0274b8f9d2bfdc41edcaaa37e
parent0425d27eea6f8d4ce66ec607567c2873e41ef525
SystemExit is ok for child processes

DietTestCase catches SystemExit while running tests, interprets it as a
test failure, and then carry on with the next test (without exiting).
This greatly upsets forked child python processes, which may call exit()
legitimately, and expect that to result in process exit.

This change re-raises the SystemExit if the current process ID is not
the original pid.

Change-Id: Ia39a350b562b2856b5588cd73826afb3d072554f
neutron/tests/base.py