Closed
Bug 512382
Opened 15 years ago
Closed 15 years ago
Don't encode test metadata in trace-test subdirectory names
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: jorendorff, Assigned: dmandelin)
References
Details
Attachments
(1 file)
20.12 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
There should be a magic comment in the test file instead, like a mode line. The test runner would have to sniff it, which is a little painful.
Comment 1•15 years ago
|
||
Another possibility is to have a file alongside, eg. "foo.test_details" (or whatever suffix you like) describes how to run "foo.js". In this case, making the file optional is probably a good idea as many tests won't need any extra info. We use a system like this with the Valgrind regtests (albeit the files are non-optional) and it works well.
Assignee | ||
Comment 2•15 years ago
|
||
For now, I went with the modeline idea. It will be easy to change to separate control files if that turns out to have a significant advantage later. There is no measurable perf cost to reading the control lines.
Attachment #396530 -
Flags: review?(jorendorff)
Reporter | ||
Updated•15 years ago
|
Attachment #396530 -
Flags: review?(jorendorff) → review+
Reporter | ||
Comment 3•15 years ago
|
||
Comment on attachment 396530 [details] [diff] [review] Patch Great! >+ @classmethod >+ def from_file(self, path): Since it's a classmethod, cls instead of self... >+ return Test(path, slow, allow_oom) and cls instead of Test here.
Assignee | ||
Comment 4•15 years ago
|
||
Pushed to TM as 33d73ef9b5d5.
Comment 5•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/33d73ef9b5d5 (fixed, I think, dmandelin, please reopen if not)
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 6•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/649c56156aa5
status1.9.2:
--- → beta1-fixed
Flags: wanted1.9.2+
Updated•15 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•