allow skipping test cleanup

This commit is contained in:
Graham Knop 2010-05-11 20:01:16 -05:00
parent b8aac77501
commit 0ef509374f

View file

@ -1023,6 +1023,12 @@ sub addToCleanup {
}
sub cleanup {
if ($ENV{WEBGUI_TEST_NOCLEANUP}) {
(pop @guarded)->dismiss
while @guarded;
return;
}
# remove guards in reverse order they were added, triggering all of the
# requested cleanup operations
pop @guarded