[Asterisk-code-review] cleanup-test-remnants: Remove *.pyc files and pycache di... (testsuite[13])

Kevin Harwell asteriskteam at digium.com
Wed Jun 27 10:59:28 CDT 2018


Kevin Harwell has uploaded this change for review. ( https://gerrit.asterisk.org/9299


Change subject: cleanup-test-remnants: Remove *.pyc files and __pycache__ directories
......................................................................

cleanup-test-remnants: Remove *.pyc files and __pycache__ directories

__pycache__ should only contain *.pyc files, but made it so the whole directory
is removed anyways. Also added it to the .gitignore.

Change-Id: I2074a746f747159b2cca23b40359a19ccec2218c
---
M .gitignore
M cleanup-test-remnants.sh
2 files changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/99/9299/1

diff --git a/.gitignore b/.gitignore
index 137bce5..b716352 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
 /fastagi
 /run-local.conf
 /.valgrindrc
+__pycache__/
diff --git a/cleanup-test-remnants.sh b/cleanup-test-remnants.sh
index 4c65922..119be5f 100755
--- a/cleanup-test-remnants.sh
+++ b/cleanup-test-remnants.sh
@@ -2,3 +2,5 @@
 
 find . -type d -name tmp | grep -vF .svn | xargs -d\\n rm -rf
 rm -rf /tmp/asterisk-testsuite /var/tmp/asterisk-testsuite ./logs/* ./fastagi
+find -name '__pycache__' -type d -exec rm -rf {} +
+find -name '*.pyc' -delete

-- 
To view, visit https://gerrit.asterisk.org/9299
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2074a746f747159b2cca23b40359a19ccec2218c
Gerrit-Change-Number: 9299
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180627/4d1e101f/attachment.html>


More information about the asterisk-code-review mailing list