]> git.parisson.com Git - pdf.js.git/commitdiff
Move closing the file to an appropriate area.
author= <=>
Thu, 6 Oct 2011 23:19:17 +0000 (16:19 -0700)
committer= <=>
Thu, 6 Oct 2011 23:19:17 +0000 (16:19 -0700)
test/test.py

index 1fb2e72c8e9cc6d05d8c525b0efef1f9b725e323..46106965b3f547e791ef920182c0050b59ae505b 100644 (file)
@@ -456,8 +456,6 @@ def checkEq(task, results, browser, masterMode):
 
     if passed:
         print 'TEST-PASS | eq test', task['id'], '| in', browser
-    if State.eqLog:
-        State.eqLog.close();
 
 def checkFBF(task, results, browser):
     round0, round1 = results[0], results[1]
@@ -544,7 +542,8 @@ def runTests(options, browsers):
         teardownBrowsers(browsers)
     t2 = time.time()
     print "Runtime was", int(t2 - t1), "seconds"
-
+    if State.eqLog:
+        State.eqLog.close();
     if options.masterMode:
         maybeUpdateRefImages(options, browsers[0])
     elif options.reftest and State.numEqFailures > 0: