Bug 133297

Summary: Fix test failures on python test
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: Tools / TestsAssignee: Gyuyoung Kim <gyuyoung.kim>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, glenn
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch krit: review+

Description Gyuyoung Kim 2014-05-26 21:38:32 PDT
There are 2 fails on python test because of unbounded local variable reference as below,


[1214/1422] webkitpy.w3c.test_importer_unittest.TestImporterTest.test_import_dir_with_no_tests_and_no_hg erred:
  Traceback (most recent call last):
    File "/home/buildbot/efl-linux-slave-1/efl-linux-64-release-wk1/build/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py", line 62, in test_import_dir_with_no_tests_and_no_hg
      importer.do_import()
    File "/home/buildbot/efl-linux-slave-1/efl-linux-64-release-wk1/build/Tools/Scripts/webkitpy/w3c/test_importer.py", line 197, in do_import
      self.import_tests()
    File "/home/buildbot/efl-linux-slave-1/efl-linux-64-release-wk1/build/Tools/Scripts/webkitpy/w3c/test_importer.py", line 377, in import_tests
      if len(failed_conversion_files):
  UnboundLocalError: local variable 'failed_conversion_files' referenced before assignment
Comment 1 Gyuyoung Kim 2014-05-26 21:41:11 PDT
Created attachment 232109 [details]
Patch
Comment 2 Dirk Schulze 2014-05-26 22:36:33 PDT
Comment on attachment 232109 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=232109&action=review

> Tools/ChangeLog:8
> +        2 tests are failed because of unbounded local variable reference in test_importer.py.

s/failed/failing/ or the other way around and remove "are".
Comment 3 Gyuyoung Kim 2014-05-26 22:39:11 PDT
Committed r169369: <http://trac.webkit.org/changeset/169369>
Comment 4 Gyuyoung Kim 2014-05-26 22:39:54 PDT
(In reply to comment #2)
> (From update of attachment 232109 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=232109&action=review
> 
> > Tools/ChangeLog:8
> > +        2 tests are failed because of unbounded local variable reference in test_importer.py.
> 
> s/failed/failing/ or the other way around and remove "are".

Patch is landed after fixing it. Thanks.
Comment 5 Gyuyoung Kim 2014-05-26 23:47:35 PDT
For the record, this problem came from http://trac.webkit.org/changeset/169347.