[asterisk-commits] Suppress logging on error loading tests/custom/test.yaml (testsuite[master])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Dec 7 07:51:59 CST 2015
Joshua Colp has submitted this change and it was merged.
Change subject: Suppress logging on error loading tests/custom/test.yaml
......................................................................
Suppress logging on error loading tests/custom/test.yaml
The tests/custom is an optional folder used to load custom tests.
Since this is optional a failure to load the file should not produce
an error message.
Change-Id: I16be347743723fb9dc81e726f16aefb984219d6e
---
M runtests.py
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Anonymous Coward #1000019: Verified
Matt Jordan: Looks good to me, approved
George Joseph: Looks good to me, but someone else must approve
diff --git a/runtests.py b/runtests.py
index 638652a..8576d32 100755
--- a/runtests.py
+++ b/runtests.py
@@ -656,7 +656,9 @@
try:
f = open(path, "r")
except IOError:
- print "Failed to open %s" % path
+ # Ignore errors for the optional tests/custom folder.
+ if path != "tests/custom/tests.yaml":
+ print "Failed to open %s" % path
return None
except:
print "Unexpected error: %s" % sys.exc_info()[0]
--
To view, visit https://gerrit.asterisk.org/1772
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I16be347743723fb9dc81e726f16aefb984219d6e
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <george.joseph at fairview5.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
More information about the asterisk-commits
mailing list