diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/mach_bootstrap.py | 1 | ||||
-rw-r--r-- | python/requirements.txt | 2 | ||||
-rw-r--r-- | python/servo/testing_commands.py | 6 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/__init__.py (renamed from python/tidy/tests/__init__.py) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/incorrect_license.rs (renamed from python/tidy/tests/incorrect_license.rs) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/long_line.rs (renamed from python/tidy/tests/long_line.rs) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/rust_tidy.rs (renamed from python/tidy/tests/rust_tidy.rs) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/spec.webidl (renamed from python/tidy/tests/spec.webidl) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/speclink.rs (renamed from python/tidy/tests/speclink.rs) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/test.toml (renamed from python/tidy/tests/test.toml) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py (renamed from python/tidy/tests/test_tidy.py) | 2 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/tidy_self_test.py (renamed from python/tidy/tests/tidy_self_test.py) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/whatwg_link.rs (renamed from python/tidy/tests/whatwg_link.rs) | 0 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/wrong_space.rs (renamed from python/tidy/tests/wrong_space.rs) | 0 |
14 files changed, 7 insertions, 4 deletions
diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py index 05b21c4fdfa..e77c78e0851 100644 --- a/python/mach_bootstrap.py +++ b/python/mach_bootstrap.py @@ -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"), ] diff --git a/python/requirements.txt b/python/requirements.txt index 5d6602fc7ba..2a7c0437183 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -13,3 +13,5 @@ pyflakes == 0.8.0 # For test-webidl ply == 3.8 + +servo_tidy == 0.0.1 diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index ea7cb7e50b8..66a2da5be3e 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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) diff --git a/python/tidy/tests/__init__.py b/python/tidy/servo_tidy_tests/__init__.py index 6b6351ddd2b..6b6351ddd2b 100644 --- a/python/tidy/tests/__init__.py +++ b/python/tidy/servo_tidy_tests/__init__.py diff --git a/python/tidy/tests/incorrect_license.rs b/python/tidy/servo_tidy_tests/incorrect_license.rs index cf85f0e2623..cf85f0e2623 100644 --- a/python/tidy/tests/incorrect_license.rs +++ b/python/tidy/servo_tidy_tests/incorrect_license.rs diff --git a/python/tidy/tests/long_line.rs b/python/tidy/servo_tidy_tests/long_line.rs index cdc0b2045bc..cdc0b2045bc 100644 --- a/python/tidy/tests/long_line.rs +++ b/python/tidy/servo_tidy_tests/long_line.rs diff --git a/python/tidy/tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs index 680b527f679..680b527f679 100644 --- a/python/tidy/tests/rust_tidy.rs +++ b/python/tidy/servo_tidy_tests/rust_tidy.rs diff --git a/python/tidy/tests/spec.webidl b/python/tidy/servo_tidy_tests/spec.webidl index 51993ea0d41..51993ea0d41 100644 --- a/python/tidy/tests/spec.webidl +++ b/python/tidy/servo_tidy_tests/spec.webidl diff --git a/python/tidy/tests/speclink.rs b/python/tidy/servo_tidy_tests/speclink.rs index 6c27a70a7d0..6c27a70a7d0 100644 --- a/python/tidy/tests/speclink.rs +++ b/python/tidy/servo_tidy_tests/speclink.rs diff --git a/python/tidy/tests/test.toml b/python/tidy/servo_tidy_tests/test.toml index c979a5cbd34..c979a5cbd34 100644 --- a/python/tidy/tests/test.toml +++ b/python/tidy/servo_tidy_tests/test.toml diff --git a/python/tidy/tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index b2dad4f0e54..f49f6d9a23d 100644 --- a/python/tidy/tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -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): diff --git a/python/tidy/tests/tidy_self_test.py b/python/tidy/servo_tidy_tests/tidy_self_test.py index e2a49f71a65..e2a49f71a65 100644 --- a/python/tidy/tests/tidy_self_test.py +++ b/python/tidy/servo_tidy_tests/tidy_self_test.py diff --git a/python/tidy/tests/whatwg_link.rs b/python/tidy/servo_tidy_tests/whatwg_link.rs index e8edfbace49..e8edfbace49 100644 --- a/python/tidy/tests/whatwg_link.rs +++ b/python/tidy/servo_tidy_tests/whatwg_link.rs diff --git a/python/tidy/tests/wrong_space.rs b/python/tidy/servo_tidy_tests/wrong_space.rs index 50ee5de75b4..50ee5de75b4 100644 --- a/python/tidy/tests/wrong_space.rs +++ b/python/tidy/servo_tidy_tests/wrong_space.rs |