Package tidy

- Modified the testing commands
- Added the requirements
- Moved python/tidy/tests to python/tidy/servo_tidy_tests for self tidy tests
This commit is contained in:
askeing 2016-04-14 15:55:25 +08:00
parent 41b86870fa
commit bfe460de9e
14 changed files with 7 additions and 4 deletions

View file

@ -13,6 +13,7 @@ from pipes import quote
SEARCH_PATHS = [
os.path.join("python", "mach"),
os.path.join("python", "tidy"),
os.path.join("tests", "wpt"),
os.path.join("tests", "wpt", "harness"),
]

View file

@ -13,3 +13,5 @@ pyflakes == 0.8.0
# For test-webidl
ply == 3.8
servo_tidy == 0.0.1

View file

@ -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)

View file

@ -12,7 +12,7 @@ from servo_tidy import tidy
def iterFile(name):
return iter(['tests/' + name])
return iter(['python/tidy/servo_tidy_tests/' + name])
class CheckTidiness(unittest.TestCase):