Bug 226802

Summary: LayoutTests: Use os.path.dirname() instead of split('/') for Windows Python
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: Tools / TestsAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: cgambrell, eric.carlson, ews-watchlist, glenn, jbedard, jer.noble, mkwst, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WIP patch
none
Patch
none
Patch none

Description Fujii Hironori 2021-06-08 18:18:32 PDT
LayoutTests: Use os.path.dirname() instead of split('/') for Windows Python
Comment 1 Fujii Hironori 2021-06-08 18:19:11 PDT
Created attachment 430930 [details]
WIP patch
Comment 2 Fujii Hironori 2021-06-08 20:51:07 PDT
Created attachment 430939 [details]
Patch
Comment 3 Fujii Hironori 2021-06-08 22:36:57 PDT
Created attachment 430941 [details]
Patch
Comment 4 Jonathan Bedard 2021-06-09 12:57:43 PDT
Comment on attachment 430941 [details]
Patch

There was a weird reason we did this, the details I don't exactly remember, but had something to do with Windows (Cygwin specifically, I think) basically appending the Unix path on top of the Windows path inside Apache.....would need to fire up a Cygwin machine to double check this patch, because Chris and I are generally aware of the dangers of using split() vs dirname, this was a deliberate decision, I just don't have the specifics on hand at the moment
Comment 5 Fujii Hironori 2021-06-09 13:21:33 PDT
AppleWin EWS didn't fail. Is it a problem of the Apple internal buildbot?
Comment 6 Jonathan Bedard 2021-06-09 13:55:41 PDT
(In reply to Fujii Hironori from comment #5)
> AppleWin EWS didn't fail. Is it a problem of the Apple internal buildbot?

It should apply to EWS too, that's where we originally found the problem. Probably best to land and revert if needed, in that case, my exploration is unlikely to lead to something more definitive than the answer EWS has given.
Comment 7 Fujii Hironori 2021-06-09 14:04:13 PDT
Comment on attachment 430941 [details]
Patch

Clearing flags on attachment: 430941

Committed r278671 (238653@main): <https://commits.webkit.org/238653@main>
Comment 8 Fujii Hironori 2021-06-09 14:04:17 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Fujii Hironori 2021-06-09 14:04:50 PDT
Thank you. I'm going to keep my eyes on AppleWin bots.
Comment 10 Radar WebKit Bug Importer 2021-06-09 14:05:19 PDT
<rdar://problem/79097303>