Bug 45261 - [NRWT] Add temp directory to all running drivers
Summary: [NRWT] Add temp directory to all running drivers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 06:10 PDT by Gabor Rapcsanyi
Modified: 2010-09-08 05:15 PDT (History)
8 users (show)

See Also:


Attachments
proposed patch (1.75 KB, patch)
2010-09-06 06:16 PDT, Gabor Rapcsanyi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Rapcsanyi 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
Comment 1 Gabor Rapcsanyi 2010-09-06 06:16:08 PDT
Created attachment 66632 [details]
proposed patch
Comment 2 Eric Seidel (no email) 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.
Comment 3 Csaba Osztrogonác 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.
Comment 4 WebKit Commit Bot 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>
Comment 5 WebKit Commit Bot 2010-09-07 00:31:01 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Dirk Pranke 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 ...
Comment 7 Gabor Rapcsanyi 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.