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
a5a575a0
Commit
a5a575a0
authored
Sep 23, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9887 from edx/ned/faster-pyc-cleaning
A faster way to clean the .pyc files
parents
e9fceb8b
210be884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
pavelib/utils/test/utils.py
+4
-1
No files found.
pavelib/utils/test/utils.py
View file @
a5a575a0
...
...
@@ -18,7 +18,10 @@ def clean_test_files():
Clean fixture files used by tests and .pyc files
"""
sh
(
"git clean -fqdx test_root/logs test_root/data test_root/staticfiles test_root/uploads"
)
sh
(
"find . -type f -name
\"
*.pyc
\"
-not -path './.git/*' -delete"
)
# This find command removes all the *.pyc files that aren't in the .git
# directory. See this blog post for more details:
# http://nedbatchelder.com/blog/201505/be_careful_deleting_files_around_git.html
sh
(
r"find . -name '.git' -prune -o -name '*.pyc' -exec rm {} \;"
)
sh
(
"rm -rf test_root/log/auto_screenshots/*"
)
sh
(
"rm -rf /tmp/mako_[cl]ms"
)
...
...
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