From 7a75ab50441b0b11082b3ee27601c6f07cad8c96 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 11 Aug 2009 19:58:12 +0000 Subject: fixed the cpp/python test integration git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@803270 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qmf/tests/python_console.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'cpp/bindings/qmf/tests/python_console.py') diff --git a/cpp/bindings/qmf/tests/python_console.py b/cpp/bindings/qmf/tests/python_console.py index 3add79bc51..7a8a2cb9fe 100755 --- a/cpp/bindings/qmf/tests/python_console.py +++ b/cpp/bindings/qmf/tests/python_console.py @@ -19,28 +19,11 @@ # import sys -from qpid.testlib import TestBase010, testrunner +from qpid.testlib import TestBase010 from qpid.datatypes import Message from qpid.queue import Empty from time import sleep -def scan_args(name, default=None, args=sys.argv[1:]): - if (name in args): - pos = args.index(name) - return args[pos + 1] - elif default: - return default - else: - print "Please specify extra argument: %s" % name - sys.exit(2) - -def extract_args(name, args): - if (name in args): - pos = args.index(name) - del args[pos:pos+2] - else: - return None - class QmfInteropTests(TestBase010): def test_A_agent_presence(self): @@ -74,10 +57,3 @@ class QmfInteropTests(TestBase010): if headers: return headers[name] return None - - -if __name__ == '__main__': - args = sys.argv[1:] - args.append("python_console") - - if not testrunner.run(args): sys.exit(1) -- cgit v1.2.1