[asterisk-commits] mnick: branch mnick/gsoc2010 r731 - /asterisk/team/mnick/gsoc2010/trunk/tests...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 16 14:17:25 CDT 2010
Author: mnick
Date: Mon Aug 16 14:17:21 2010
New Revision: 731
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=731
Log:
cleaned code-- Diese und die folgenden Zeilen werden ignoriert --
M run-test
Modified:
asterisk/team/mnick/gsoc2010/trunk/tests/one-step-parking/run-test
Modified: asterisk/team/mnick/gsoc2010/trunk/tests/one-step-parking/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mnick/gsoc2010/trunk/tests/one-step-parking/run-test?view=diff&rev=731&r1=730&r2=731
==============================================================================
--- asterisk/team/mnick/gsoc2010/trunk/tests/one-step-parking/run-test (original)
+++ asterisk/team/mnick/gsoc2010/trunk/tests/one-step-parking/run-test Mon Aug 16 14:17:21 2010
@@ -31,7 +31,7 @@
# get version info
parser = OptionParser()
- parser.add_option("-v", "--version", dest="ast_version", \
+ parser.add_option("-v", "--version", dest="ast_version",
help="Asterisk version string")
(options, args) = parser.parse_args(argv)
self.ast_version = AsteriskVersion(options.ast_version)
@@ -39,19 +39,19 @@
# FastAGI, listen for results from dialplan
self.agi_dial_a = fastagi.FastAGIFactory(self.get_result_dial_a)
self.agi_b = fastagi.FastAGIFactory(self.get_result_b)
- reactor.listenTCP(4600, self.agi_dial_a, \
+ reactor.listenTCP(4600, self.agi_dial_a,
self.timeout, '127.0.0.1') # retrieve userA (Dial 701)
- reactor.listenTCP(4574, self.agi_b, \
+ reactor.listenTCP(4574, self.agi_b,
self.timeout, '127.0.0.1') # success
reactor.callWhenRunning(self.run)
print self.ast_version
- self.asterisk1 = Asterisk( \
+ self.asterisk1 = Asterisk(
base="/tmp/asterisk-testsuite/one-step-parking")
self.asterisk1.install_configs("tests/one-step-parking/configs")
- self.asterisk2 = Asterisk( \
+ self.asterisk2 = Asterisk(
base="/tmp/asterisk-testsuite/one-step-parking")
self.asterisk2.install_configs("tests/one-step-parking/configs2")
@@ -59,8 +59,8 @@
# and userB is trying to retrieve userA by dialing 701
def get_result_dial_a(self, agi):
self.log_last_step("Dial userA (701)")
- self.asterisk2.cli_originate("IAX2/userA at 127.0.0.1:4570/701 \
- extension retrieve_A at parking")
+ self.asterisk2.cli_originate(
+ "IAX2/userA at 127.0.0.1:4570/701 extension retrieve_A at parking")
return self.finish_agi(agi)
# This gets invoked by the dialplan when test succeeds.
@@ -96,8 +96,8 @@
if (self.passed):
self.log_last_step("Test Passed...")
else:
- self.log_last_step("Test Failed... view result of \
- 'core show globals' in log for more detailed failure results.")
+ self.log_last_step("Test Failed... view result of "
+ "core show globals' in log for more detailed failure results.")
if reactor.running:
print "Stopping Reactor ..."
@@ -113,8 +113,8 @@
self.asterisk1.cli_exec("core set verbose 10")
self.log_last_step("Originating call to begin test")
- self.asterisk1.cli_originate("IAX2/userA at 127.0.0.1:4571/b_exten \
- extension a_dials at parking")
+ self.asterisk1.cli_originate(
+ "IAX2/userA at 127.0.0.1:4571/b_exten extension a_dials at parking")
def start_asterisk(self):
self.log_last_step("Starting Asterisk")
More information about the asterisk-commits
mailing list