[asterisk-dev] Change in testsuite[master]: Fixes related to testsuite GIT migration.
Corey Farrell (Code Review)
asteriskteam at digium.com
Thu Mar 26 12:28:50 CDT 2015
Corey Farrell has uploaded a new change for review.
https://gerrit.asterisk.org/11
Change subject: Fixes related to testsuite GIT migration.
......................................................................
Fixes related to testsuite GIT migration.
* Add /logs to the root .gitignore.
* Modify runtests.py to create logs/ when it's missing.
* Update README.txt with instructions to use git clone
to get the latest testsuite.
Change-Id: Ic67a6b4e3c55fd297a70fdbdf7c0aa7737c7aeb6
---
M .gitignore
M README.txt
D logs/.gitignore
M runtests.py
4 files changed, 8 insertions(+), 3 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/11/11/1
diff --git a/.gitignore b/.gitignore
index b2ee250..cf96d9e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*.pyc
asterisk-test-suite-report.xml
/astroot
+/logs
diff --git a/README.txt b/README.txt
index be430f6..30027f2 100644
--- a/README.txt
+++ b/README.txt
@@ -184,7 +184,7 @@
$ make install
Check out the test suite:
- $ svn co http://svn.digium.com/svn/testsuite/asterisk/trunk testsuite
+ $ git clone http://gerrit.asterisk.org/testsuite
$ cd testsuite
List the tests:
@@ -211,7 +211,7 @@
$ ./configure && make
Check out the test suite:
- $ svn co http://svn.digium.com/svn/testsuite/asterisk/trunk testsuite
+ $ git clone http://gerrit.asterisk.org/testsuite
$ cd testsuite
Setup the test environment:
diff --git a/logs/.gitignore b/logs/.gitignore
deleted file mode 100644
index 13e4d83..0000000
--- a/logs/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-[^.]*
diff --git a/runtests.py b/runtests.py
index 60873dc..f0fac91 100755
--- a/runtests.py
+++ b/runtests.py
@@ -26,6 +26,11 @@
os.close(sys.stdout.fileno())
sys.stdout = os.fdopen(newfno, 'w', 1)
+# Ensure logs directory exists before importing
+# anything that might use logging.
+if not os.path.isdir("logs"):
+ os.mkdir("logs")
+
sys.path.append("lib/python")
from asterisk.version import AsteriskVersion
--
To view, visit https://gerrit.asterisk.org/11
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic67a6b4e3c55fd297a70fdbdf7c0aa7737c7aeb6
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
More information about the asterisk-dev
mailing list