Closed
Bug 423033
Opened 16 years ago
Closed 16 years ago
mochitest should ignore non-existent files
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9
People
(Reporter: Dolske, Assigned: Dolske)
Details
Attachments
(1 file)
1.00 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
I've hit this annoyance a few times: 1) Start writing some tests 2) Decide to delete or change the name of one of the tests 3) Mochitest suddenly fail on launch with: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsILocalFile.isDirectory]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: /Users/dolske/ff/trunk1/mozilla/obj-ff/_tests/testing/mochitest/server.js :: list :: line 260" data: no] The problem is because the directory iterator gives the old symlinks that point to files that no longer exists. We should check for existence and ignore non-existent files. [Alternatively, throw a more descriptive error that suggests clearing out the old links in $objdir.] This patch fixed the problem when I hit it.
Attachment #309537 -
Flags: review?(jwalden+bmo)
Updated•16 years ago
|
Assignee: nobody → dolske
Comment 1•16 years ago
|
||
Comment on attachment 309537 [details] [diff] [review] Patch v.1 I can't help thinking there's something we could do here to avoid the problem entirely, but this will work well enough for now.
Attachment #309537 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 2•16 years ago
|
||
Checking in testing/mochitest/server.js; new revision: 1.25; previous revision: 1.24
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta5
Updated•16 years ago
|
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
Target Milestone: mozilla1.9beta5 → mozilla1.9
You need to log in
before you can comment on or make changes to this bug.
Description
•