[svn-commits] pabelanger: branch pabelanger/testClass r1118 - /asterisk/team/pabelanger/tes...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Dec 8 17:41:42 CST 2010
Author: pabelanger
Date: Wed Dec 8 17:41:38 2010
New Revision: 1118
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1118
Log:
Update udptl test
Modified:
asterisk/team/pabelanger/testClass/tests/udptl/run-test
Modified: asterisk/team/pabelanger/testClass/tests/udptl/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/testClass/tests/udptl/run-test?view=diff&rev=1118&r1=1117&r2=1118
==============================================================================
--- asterisk/team/pabelanger/testClass/tests/udptl/run-test (original)
+++ asterisk/team/pabelanger/testClass/tests/udptl/run-test Wed Dec 8 17:41:38 2010
@@ -18,39 +18,17 @@
sys.path.append("lib/python")
from asterisk.asterisk import Asterisk
from asterisk.version import AsteriskVersion
+from asterisk.TestCase import TestCase
-workingdir = "/tmp/asterisk-testsuite/udptl"
-testdir = "tests/udptl"
-
-class UdptlTest:
+class UdptlTest(TestCase):
def __init__(self, argv):
self.last_step = ""
self.passed = False
- parser = OptionParser()
- 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)
+ TestCase.__init__(self, argv)
+ self.create_asterisk(2)
reactor.callWhenRunning(self.run)
-
- self.ast1 = Asterisk(base=workingdir)
- self.ast1.install_configs("%s/configs/ast1" % (testdir))
-
- self.ast2 = Asterisk(base=workingdir)
- self.ast2.install_configs("%s/configs/ast2" % (testdir))
-
- def start_asterisk(self):
- self.log_last_step("Starting Asterisk")
- self.ast1.start()
- self.ast1.cli_exec("fax set debug on")
- self.ast2.start()
- self.ast2.cli_exec("fax set debug on")
-
- def stop_asterisk(self):
- self.ast1.stop()
- self.ast2.stop()
def ami_on_connect1(self, ami):
self.log_last_step("Connected to AMI 1")
More information about the svn-commits
mailing list