Bug 232037 - [Win Python] REGRESSION(r284398): run-api-tests: FileNotFoundError raised: [WinError 2] The system cannot find the file specified
Summary: [Win Python] REGRESSION(r284398): run-api-tests: FileNotFoundError raised: [W...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-20 13:22 PDT by Fujii Hironori
Modified: 2021-10-21 13:18 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.56 KB, patch)
2021-10-20 14:43 PDT, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2021-10-20 13:22:26 PDT
[Win Python] REGRESSION(r284398): run-api-tests: FileNotFoundError raised: [WinError 2] The system cannot find the file specified

WinCairo-64-bit-WKL-Debug-Tests 243185@main
https://build.webkit.org/#/builders/32/builds/1123

Collecting tests ...
Looking at ['C:\\BW\\wincairo-wkl-debug-tests\\build\\WebKitBuild\\Debug\\bin64\\ToBeListed.exe', '--gtest_list_tests']
FileNotFoundError raised: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
  File "C:\BW\wincairo-wkl-debug-tests\build\Tools\Scripts\run-api-tests", line 61, in main
    return run(port, options, args, stderr)
  File "C:\BW\wincairo-wkl-debug-tests\build\Tools\Scripts\run-api-tests", line 79, in run
    result = manager.run(args, json_output=options.json_output)
  File "C:\BW\wincairo-wkl-debug-tests\build\Tools\Scripts\webkitpy\api_tests\manager.py", line 188, in run
    test_names = self._collect_tests(args)
  File "C:\BW\wincairo-wkl-debug-tests\build\Tools\Scripts\webkitpy\api_tests\manager.py", line 113, in _collect_tests
    output = self.host.executive.run_command(
  File "C:\BW\wincairo-wkl-debug-tests\build\Tools\Scripts\webkitpy\common\system\executive.py", line 409, in run_command
    process = self.popen(args,
  File "C:\BW\wincairo-wkl-debug-tests\build\Tools\Scripts\webkitpy\common\system\executive.py", line 541, in popen
    result = subprocess.Popen(string_args, env=env, **kwargs)
  File "C:\tools\python3\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\tools\python3\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Comment 1 Fujii Hironori 2021-10-20 14:34:07 PDT
On Windows, TestWTF.exe is just a wrapper program loading TestWTFLib.dll.
If I just rename TestWTF.exe to ToBeListed.exe, ToBeListed.exe tries to load ToBeListedLib.dll.

> .\WebKitBuild\Debug\bin64\ToBeListed.exe --gtest_list_tests
ToBeListed can't open.
::LoadLibraryW failed:
path=C:\home\webkit\gc\WebKitBuild\Debug\bin64\ToBeListedLib.dll
The specified module could not be found.
Comment 2 Fujii Hironori 2021-10-20 14:43:25 PDT
Created attachment 441942 [details]
Patch
Comment 3 Fujii Hironori 2021-10-21 13:17:24 PDT
Comment on attachment 441942 [details]
Patch

Clearing flags on attachment: 441942

Committed r284637 (243357@main): <https://commits.webkit.org/243357@main>
Comment 4 Fujii Hironori 2021-10-21 13:17:27 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2021-10-21 13:18:19 PDT
<rdar://problem/84520709>