mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
Auto merge of #10590 - edunham:package-tidy, r=larsbergstrom
Package tidy This fixes https://github.com/servo/servo/issues/861. @askeing, I've copied your work from https://github.com/askeing/servo_tidy and attributed the commit to you. My commit in this PR is Git housekeeping to preserve `tidy`'s history. If you'd like to make additional changes, I've given you and @shinglyu push access to my fork of Servo. Apologies if this is already familiar, but the workflow for pushing to my branch is: ``` $ git remote add edunham git@github.com:edunham/servo.git $ git checkout -b package-tidy $ git pull edunham package-tidy $ git push edunham package-tidy ``` Once this lands, I'll look at how to publish it to PyPI and automate that process. Please don't merge this yet; we still need to discuss how the change should work around https://github.com/servo/servo/blob/master/python/servo/testing_commands.py#L33 , as I've yet to figure out how to get the egg to actually expose its tests. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10590) <!-- Reviewable:end -->
This commit is contained in:
commit
bfe54539d2
22 changed files with 255 additions and 9 deletions
|
@ -29,8 +29,8 @@ from mach.decorators import (
|
|||
from servo.command_base import CommandBase, call, check_call
|
||||
from wptrunner import wptcommandline
|
||||
from update import updatecommandline
|
||||
import tidy
|
||||
from tidy_self_test import tidy_self_test
|
||||
from servo_tidy import tidy
|
||||
from servo_tidy_tests import test_tidy
|
||||
|
||||
SCRIPT_PATH = os.path.split(__file__)[0]
|
||||
PROJECT_TOPLEVEL_PATH = os.path.abspath(os.path.join(SCRIPT_PATH, "..", ".."))
|
||||
|
@ -279,7 +279,7 @@ class MachCommands(CommandBase):
|
|||
help="Run unit tests for tidy")
|
||||
def test_tidy(self, faster, no_progress, self_test):
|
||||
if self_test:
|
||||
return tidy_self_test.do_tests()
|
||||
return test_tidy.do_tests()
|
||||
else:
|
||||
return tidy.scan(faster, not no_progress)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue