WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 45261
[NRWT] Add temp directory to all running drivers
https://bugs.webkit.org/show_bug.cgi?id=45261
Summary
[NRWT] Add temp directory to all running drivers
Gabor Rapcsanyi
Reported
2010-09-06 06:10:14 PDT
NRWT doesn't give temp directory to DRT. See this bug for details:
https://bugs.webkit.org/show_bug.cgi?id=36899
Attachments
proposed patch
(1.75 KB, patch)
2010-09-06 06:16 PDT
,
Gabor Rapcsanyi
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gabor Rapcsanyi
Comment 1
2010-09-06 06:16:08 PDT
Created
attachment 66632
[details]
proposed patch
Eric Seidel (no email)
Comment 2
2010-09-06 13:23:10 PDT
Comment on
attachment 66632
[details]
proposed patch OK. I assume this makes Qt's DRT work better when running multiple copies? I see the ORWT has similar code.
Csaba Osztrogonác
Comment 3
2010-09-06 14:53:43 PDT
(In reply to
comment #2
)
> (From update of
attachment 66632
[details]
) > OK. I assume this makes Qt's DRT work better when running multiple copies? I see the ORWT has similar code.
Yes, you're right. It is important when we run multiple run-webkit-tests. If we didn't separate temp directories, the local storage and icon database could be damage because of concurent file accesses. This method works correctly for a long time with ORWT.
WebKit Commit Bot
Comment 4
2010-09-07 00:30:55 PDT
Comment on
attachment 66632
[details]
proposed patch Clearing flags on attachment: 66632 Committed
r66863
: <
http://trac.webkit.org/changeset/66863
>
WebKit Commit Bot
Comment 5
2010-09-07 00:31:01 PDT
All reviewed patches have been landed. Closing bug.
Dirk Pranke
Comment 6
2010-09-07 15:28:46 PDT
Hmm. It's not great that we're doing this work in the constructor and destructor; I've found that can lead to indeterminate results in general (although it's fine in this case). There's actually a port.setup_test_run() method that would be the appropriate place to create the temp dir - it's called only when we're sure we actually want to start running tests, but before DumpRenderTree is ever launched. Unfortunately, there isn't a cleanup_test_run() method to match it. I'll add both of those and refactor this (in a separate bug/change), unless there's an objection ...
Gabor Rapcsanyi
Comment 7
2010-09-08 05:15:45 PDT
(In reply to
comment #6
)
> Hmm. It's not great that we're doing this work in the constructor and destructor; I've found that can lead to indeterminate results in general (although it's fine in this case). > > There's actually a port.setup_test_run() method that would be the appropriate place to create the temp dir - it's called only when we're sure we actually want to start running tests, but before DumpRenderTree is ever launched. Unfortunately, there isn't a cleanup_test_run() method to match it. > > I'll add both of those and refactor this (in a separate bug/change), unless there's an objection ...
Ok, you're right. We don't know when the gc delete this temp directory, so maybe a better way is your idea.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug