Closed
Bug 644697
Opened 14 years ago
Closed 14 years ago
jsreftests shell test runner throws "Failed to test XUL condition 'Android'"
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: jandem, Assigned: jmaher)
References
Details
Attachments
(1 file)
1.18 KB,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
When I run the tests like this:
$ python tests/jstests.py --args="-m -j" build-debug/js
I get this error message:
--
Traceback (most recent call last):
File "tests/jstests.py", line 295, in <module>
test_list = manifest.parse(OPTIONS.manifest, xul_tester)
File "js/src/tests/manifest.py", line 107, in parse
ans += parse(os.path.join(dir, include_file), xul_tester, include_reldir)
File "js/src/tests/manifest.py", line 107, in parse
ans += parse(os.path.join(dir, include_file), xul_tester, include_reldir)
File "js/src/tests/manifest.py", line 131, in parse
if xul_tester.test(cond):
File "js/src/tests/manifest.py", line 78, in test
raise Exception("Failed to test XUL condition '%s'"%cond)
Exception: Failed to test XUL condition 'Android'
--
Ted says this is a regression from bug 637660.
Comment 1•14 years ago
|
||
I suspect the fact that this doesn't get run on Tinderbox anywhere means that we can break it and not notice.
Assignee | ||
Comment 2•14 years ago
|
||
this is a fairly easy fix. Inside of reftest.js, we do have some hardcoded constants:
http://mxr.mozilla.org/mozilla-central/source/layout/tools/reftest/reftest.js#404
There are a couple ways to approach this:
1) change the 2 instances of 'Android' in the jsreftest manifest files to be 'xulRuntime.OS == "Android"'
2) add another variable similar to isDebugBuild to manifest.py: http://mxr.mozilla.org/mozilla-central/source/js/src/tests/manifest.py#20.
I would prefer option 2, but please let me know if option 1 or something else is preferred.
Comment 3•14 years ago
|
||
(In reply to comment #2)
> this is a fairly easy fix. Inside of reftest.js, we do have some hardcoded
> constants:
> http://mxr.mozilla.org/mozilla-central/source/layout/tools/reftest/reftest.js#404
>
> There are a couple ways to approach this:
> 1) change the 2 instances of 'Android' in the jsreftest manifest files to be
> 'xulRuntime.OS == "Android"'
> 2) add another variable similar to isDebugBuild to manifest.py:
> http://mxr.mozilla.org/mozilla-central/source/js/src/tests/manifest.py#20.
>
> I would prefer option 2, but please let me know if option 1 or something else
> is preferred.
Either option is fine with me.
Assignee | ||
Comment 4•14 years ago
|
||
bc, feel free to add anybody else to the review chain.
Assignee: general → jmaher
Attachment #521602 -
Flags: review?
Comment 6•14 years ago
|
||
Comment on attachment 521602 [details] [diff] [review]
add in support for Android keyword
Formatting nit: s/self.os=="Android"/self.os == "Android"/
Thanks for fixing this.
Attachment #521602 -
Flags: review? → review+
Comment 7•14 years ago
|
||
(In reply to comment #1)
> I suspect the fact that this doesn't get run on Tinderbox anywhere means that
> we can break it and not notice.
That'll be solved by bug 642299.
Assignee | ||
Comment 8•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•