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)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: jorendorff, Assigned: dmandelin)

References

Details

Attachments

(1 file)

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.
Blocks: 512182
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.
Attached patch PatchSplinter Review
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)
Attachment #396530 - Flags: review?(jorendorff) → review+
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.
Pushed to TM as 33d73ef9b5d5.
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
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: