Closed
Bug 470415
Opened 16 years ago
Closed 16 years ago
mochitest does not allow ~ shortcut for --log-file argument
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: arno, Assigned: arno)
Details
Attachments
(1 file)
1.17 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Hi, on devmo, there are examples of using --log-file with ~/mochitest.log argument: python runtests.py --log-file=~/mochitest.log --file-level=DEBUG https://developer.mozilla.org/en/Mochitest#Logging_results Unfortunately, this won't work [1] because ~/mochitest.log is not expanded in python script. [1]: Error: uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileOutputStream.init]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: http://localhost:8888/tests/SimpleTest/MozillaFileLogger.js :: anonymous :: line 48" data: no]
Comment 1•16 years ago
|
||
Should be easy to fix, just throw in an os.path.expanduser ( http://docs.python.org/library/os.path.html#os.path.expanduser ) here: http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py.in#336
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → arno
Assignee | ||
Comment 2•16 years ago
|
||
I used an intermediate variable to prevent having more than 80 characters on the line.
Assignee | ||
Updated•16 years ago
|
Attachment #353814 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•16 years ago
|
Attachment #353814 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Updated•16 years ago
|
Attachment #353814 -
Attachment is patch: true
Updated•16 years ago
|
Attachment #353814 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 4•16 years ago
|
||
Pushed: http://hg.mozilla.org/mozilla-central/rev/63719f0f1d85
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•