Closed Bug 470415 Opened 16 years ago Closed 16 years ago

mochitest does not allow ~ shortcut for --log-file argument

Categories

(Testing :: Mochitest, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arno, Assigned: arno)

Details

Attachments

(1 file)

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]
Assignee: nobody → arno
I used an intermediate variable to prevent having more than 80 characters on the line.
Attachment #353814 - Flags: review?(ted.mielczarek)
Attachment #353814 - Attachment mime type: application/octet-stream → text/plain
Attachment #353814 - Attachment is patch: true
Attachment #353814 - Flags: review?(ted.mielczarek) → review+
Keywords: checkin-needed
I'll push this.
Keywords: checkin-needed
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.

Attachment

General

Creator:
Created:
Updated:
Size: