Modified the servo_tidy_tests for both "./mach" and "make test"

- fix `cd python/tidy; make test` fail issue
This commit is contained in:
askeing 2016-04-14 16:13:48 +08:00
parent 753db5e119
commit 8c4c899ef9
2 changed files with 4 additions and 4 deletions

View file

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