Skip to content

Commit

Permalink
Modified the servo_tidy_tests for both "./mach" and "make test"
Browse files Browse the repository at this point in the history
- fix `cd python/tidy; make test` fail issue
  • Loading branch information
askeing committed Apr 14, 2016
1 parent 753db5e commit 8c4c899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions python/tidy/Makefile
Expand Up @@ -16,9 +16,7 @@ dev-env: $(VENV)/bin/python
# for testing
.PHONY: test
test: dev-env
$(VENV)/bin/pip install --upgrade funcsigs
$(VENV)/bin/pip install --upgrade mock
$(VENV)/bin/python -m unittest discover -s tests -v
$(VENV)/bin/python -m unittest discover -s servo_tidy_tests -v


.PHONY: clean
Expand Down
4 changes: 3 additions & 1 deletion python/tidy/servo_tidy_tests/test_tidy.py
Expand Up @@ -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):
Expand Down

0 comments on commit 8c4c899

Please sign in to comment.