mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Modified the servo_tidy_tests for both "./mach" and "make test"
- fix `cd python/tidy; make test` fail issue
This commit is contained in:
parent
753db5e119
commit
8c4c899ef9
2 changed files with 4 additions and 4 deletions
|
@ -7,12 +7,14 @@
|
|||
# option. This file may not be copied, modified, or distributed
|
||||
# except according to those terms.
|
||||
|
||||
import os
|
||||
import unittest
|
||||
from servo_tidy import tidy
|
||||
|
||||
|
||||
def iterFile(name):
|
||||
return iter(['python/tidy/servo_tidy_tests/' + name])
|
||||
path = 'servo_tidy_tests/' if os.path.exists('servo_tidy_tests/') else 'python/tidy/servo_tidy_tests/'
|
||||
return iter([os.path.join(path, name)])
|
||||
|
||||
|
||||
class CheckTidiness(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue