[Http-webtest-commits] CVS: HTTP-WebTest/lib/HTTP/WebTest API.pm,1.11,1.12
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <m_...@us...> - 2002-05-26 20:04:25
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest In directory usw-pr-cvs1:/tmp/cvs-serv30222/lib/HTTP/WebTest Modified Files: API.pm Log Message: Fix links Index: API.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/API.pm,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** API.pm 17 May 2002 20:48:57 -0000 1.11 --- API.pm 26 May 2002 20:04:22 -0000 1.12 *************** *** 103,111 **** $self->_global_test_params($params); ! # start tests hook ! for my $plugin (@{$self->plugins}) { ! if($plugin->can('start_tests')) { ! $plugin->start_tests; } } --- 103,126 ---- $self->_global_test_params($params); ! # start tests hook; note that plugins can load other plugins and ! # modify $self->plugins in start tests hook ! my %initialized = (); ! while(1) { ! my $done = 1; ! ! my @plugins = @{$self->plugins}; ! for my $plugin (@plugins) { ! unless($initialized{$plugin}) { ! if($plugin->can('start_tests')) { ! $plugin->start_tests; ! } ! $initialized{$plugin} = 1; ! # we must on more round to check for uninitialized ! # plugins ! $done = 0; ! } } + + last if $done; } |