]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
poll_loop: Restore diversion of logm
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 4 Nov 2014 17:32:44 +0000 (17:32 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 6 Nov 2014 16:20:29 +0000 (16:20 +0000)
poll_loop is supposed to divert the logging away so that you don't
have to see a pile of repetitive logging if the operation succeeds.

But this was broken when the code was moved from the perl module
Osstest to Osstest::TestSupport.  Fix it.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Osstest/TestSupport.pm

index d66708e50345cda12a15f0e0c331086b2878305f..f8b531221220f31f1a3a52cbf3181f1eb4096392 100644 (file)
@@ -612,7 +612,7 @@ sub poll_loop ($$$&) {
         $logmtmpfile= IO::File::new_tmpfile or die $!;
 
         if (!eval {
-            local ($Osstest::logm_handle) = ($logmtmpfile);
+            local ($Osstest::TestSupport::logm_handle) = ($logmtmpfile);
             $bad= $code->();
             1;
         }) {