Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd a mach command to test WebIDL.py #9397
Comments
|
This would belong in |
|
We probably should update update.sh to make it update the tests from mozilla-central too.
|
|
I'd like to do this. |
|
@therealkbhat It's yours! Let us know if you've got any questions! |
Isn't it already fetching from mozilla-central? |
|
@therealkbhat Note that it just fetches the WebIDL.py file. nox was talking updating the tests dir too |
|
I guess putting the paren in print will solve the issue.. |
|
@nxnfufunezn that worked. :) Relative imports is throwing me off, though. It says |
|
import sys |
|
@nxnfufunezn thanks again. This is a bit more confusing than I thought it'd be... how do I pass
|
|
@therealkbhat Try importing the runtests module and add a command argument for verbose output :) |
In sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))So I need to import In @CommandArgument('--quiet', '-q', action='store_false',
help="Don't print passing tests")This is what I've added to my previous code. What am I doing wrong? I'm getting
EDIT: updated gist. |
|
@jdm, feel free to unassign me for now. I won't be able to work on this for a while, and I found that I need to do a bit more understanding to figure out how everything fits together! In the meantime, someone else might be able to get this fixed faster. :) |
|
No worries, thanks for trying! :) For future reference, it would be of great help if you push your commits to your fork and link them here, instead of putting them in gists. |
|
@wafflespeanut duly noted. :) |
|
Can I take this bug if no one is working on it? |
|
Great! Feel free to ask questions here or at the #servo channel in IRC :) |
|
So here is my plan, please let me know if its OK.
I can run |
|
Looking into the |
|
Hi I wrote a draft version that doesn't update from mozilla-central So we should download the |
|
Do we want to run the update script each time I test-webidl? |
|
@wafflespeanut Fix it. We store patches to be sure we don't lose stuff when updating the parser. |
|
@wafflespeanut OK, I'll create a PR for the @nox For the |
|
I got an warning in the PR saying that I don't have tests. Where can I add a test for mach command? |
|
That's just the bot shouting at any change made to |
|
@wafflespeanut Thanks! |
Add mach test-webidl command I updated the `WebIDL.py` from latest mozilla-central. And add a `./mach test-webidl` command. For #9397 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9459) <!-- Reviewable:end -->
Add mach test-webidl command I updated the `WebIDL.py` from latest mozilla-central. And add a `./mach test-webidl` command. For #9397 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9459) <!-- Reviewable:end -->
Add mach test-webidl command I updated the `WebIDL.py` from latest mozilla-central. And add a `./mach test-webidl` command. For #9397 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9459) <!-- Reviewable:end -->
We should run runtests.py.
You could possibly name it
mach test-webidl