[Asterisk-code-review] test runner.py: Only load global test modules when global co... (testsuite[master])

Joshua Colp asteriskteam at digium.com
Mon Feb 1 06:03:28 CST 2016


Joshua Colp has uploaded a new change for review.

  https://gerrit.asterisk.org/2134

Change subject: test_runner.py: Only load global test modules when global config exists.
......................................................................

test_runner.py: Only load global test modules when global config exists.

Change-Id: I8a5f5a7fc6a438980f505f6e42c3c788bf587e83
---
M lib/python/asterisk/test_runner.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/34/2134/1

diff --git a/lib/python/asterisk/test_runner.py b/lib/python/asterisk/test_runner.py
index e940fb9..6d4a583 100755
--- a/lib/python/asterisk/test_runner.py
+++ b/lib/python/asterisk/test_runner.py
@@ -320,7 +320,8 @@
     load_test_modules(test_config, test_object, ast_version)
 
     # Load global modules as well
-    load_test_modules(test_object.global_config.config, test_object, ast_version)
+    if test_object.global_config.config:
+        load_test_modules(test_object.global_config.config, test_object, ast_version)
 
     # Kick off the twisted reactor
     reactor.run()

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a5f5a7fc6a438980f505f6e42c3c788bf587e83
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list