Commit cc8c7e7c by Ned Batchelder

Merge pull request #7880 from edx/ned/pedantic-fix-for-deleting-pyc-files

Don't delete *.pyc files in the .git directory
parents c776272a 72c09910
...@@ -18,7 +18,7 @@ def clean_test_files(): ...@@ -18,7 +18,7 @@ def clean_test_files():
Clean fixture files used by tests and .pyc 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("git clean -fqdx test_root/logs test_root/data test_root/staticfiles test_root/uploads")
sh("find . -type f -name \"*.pyc\" -delete") sh("find . -type f -name \"*.pyc\" -not -path './.git/*' -delete")
sh("rm -rf test_root/log/auto_screenshots/*") sh("rm -rf test_root/log/auto_screenshots/*")
sh("rm -rf /tmp/mako_[cl]ms") sh("rm -rf /tmp/mako_[cl]ms")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment