Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
de887b0d
Commit
de887b0d
authored
Sep 29, 2017
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Remove cache dirs from commonlib testing.
parent
5d1363b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
pavelib/utils/envs.py
+3
-2
pavelib/utils/test/suites/pytest_suite.py
+1
-1
No files found.
pavelib/utils/envs.py
View file @
de887b0d
...
...
@@ -200,11 +200,12 @@ class Env(object):
JS_REPORT_DIR
=
REPORT_DIR
/
'javascript'
# Directories used for common/lib/ tests
# Directories used for common/lib/tests
IGNORED_TEST_DIRS
=
(
'__pycache__'
,
'.cache'
)
LIB_TEST_DIRS
=
[]
for
item
in
(
REPO_ROOT
/
"common/lib"
)
.
listdir
():
dir_name
=
(
REPO_ROOT
/
'common/lib'
/
item
)
if
dir_name
.
isdir
()
and
not
dir_name
.
endswith
(
(
'__pycache__'
,
'.cache'
)
):
if
dir_name
.
isdir
()
and
not
dir_name
.
endswith
(
IGNORED_TEST_DIRS
):
LIB_TEST_DIRS
.
append
(
path
(
"common/lib"
)
/
item
.
basename
())
LIB_TEST_DIRS
.
append
(
path
(
"pavelib/paver_tests"
))
...
...
pavelib/utils/test/suites/pytest_suite.py
View file @
de887b0d
...
...
@@ -191,7 +191,7 @@ class SystemTestSuite(PytestSuite):
"""
Should this path be included in the pytest arguments?
"""
if
path
.
endswith
(
'__pycache__'
):
if
path
.
endswith
(
Env
.
IGNORED_TEST_DIRS
):
return
False
return
path
.
endswith
(
'.py'
)
or
os
.
path
.
isdir
(
path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment