[Asterisk-code-review] cleanup-test-remnants: Remove *.pyc files and pycache di... (testsuite[master])
Jenkins2
asteriskteam at digium.com
Thu Jun 28 07:24:35 CDT 2018
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/9302 )
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(-)
Approvals:
Corey Farrell: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Jenkins2: Approved for Submit
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/9302
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2074a746f747159b2cca23b40359a19ccec2218c
Gerrit-Change-Number: 9302
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180628/8902069c/attachment.html>
More information about the asterisk-code-review
mailing list