[Webkit-unassigned] [Bug 61780] New: [Qt] Fix run-qtwebkit-tests on Windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 31 05:13:04 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=61780

           Summary: [Qt] Fix run-qtwebkit-tests on Windows
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Keywords: Qt, QtTriaged
          Severity: Critical
          Priority: P1
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ossy at webkit.org
            Blocks: 55055


bug 1:
-------
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\Python26\lib\multiprocessing\forking.py", line 341, in main
    prepare(preparation_data)
  File "c:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
    file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named run-qtwebkit-tests

--> multiprocessing doesn't work on Windows for some reason.
If we pass -j1 to the script, it works more or less, but
it would be better if we can disable multiprocessing on Windows.



bug 2:
-------
find_tests_paths function are buggy, because it selects all 
files, but it should find only files end with "exe" extension.

quick workaround works for me on Windows:
-filtered_path = filter(lambda w: w.startswith('tst_') and os.access(os.path.join(root, w), os.X_OK), files)
+filtered_path = filter(lambda w: w.startswith('tst_') and w.endswith('exe') and os.access(os.path.join(root, w), os.X_OK), files)

It would be great if we have a proper fix for it.



bug 3:
-------
I got this error after all tests run:

Traceback (most recent call last):
  File "./Tools/Scripts/run-qtwebkit-tests", line 389, in <module>
    main.run()
  File "./Tools/Scripts/run-qtwebkit-tests", line 219, in run
    transformed_results = self.transform(results)
  File "./Tools/Scripts/run-qtwebkit-tests", line 248, in transform
    stdout = self.convert_to_stdout(results)
  File "./Tools/Scripts/run-qtwebkit-tests", line 271, in convert_to_stdout
    txt = "\n\n".join(map(lambda w: w.output(), results))
TypeError: sequence item 3: expected string, NoneType found

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list