diff options
author | Bastian Bloessl <mail@bastibl.net> | 2019-06-20 09:14:30 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-28 09:16:18 +0200 |
commit | dd731528b6806b42c8bc7e24e58dbb3ed40b4b8f (patch) | |
tree | 3b3bd38afade968425fafaa52a9387e47adf8766 /gr-blocks/python | |
parent | 23bf13685faabe40fed4314534ae71936cdbeece (diff) |
ctrlport: qa use new api
Diffstat (limited to 'gr-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/qa_cpp_py_binding.py | 3 | ||||
-rw-r--r-- | gr-blocks/python/blocks/qa_cpp_py_binding_set.py | 3 | ||||
-rw-r--r-- | gr-blocks/python/blocks/qa_ctrlport_probes.py | 15 |
3 files changed, 7 insertions, 14 deletions
diff --git a/gr-blocks/python/blocks/qa_cpp_py_binding.py b/gr-blocks/python/blocks/qa_cpp_py_binding.py index a2c6773691..afa8c6a531 100644 --- a/gr-blocks/python/blocks/qa_cpp_py_binding.py +++ b/gr-blocks/python/blocks/qa_cpp_py_binding.py @@ -155,11 +155,10 @@ class test_cpp_py_binding(gr_unittest.TestCase): ep = gr.rpcmanager_get().endpoints()[0] hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) portnum = re.search(r"-p (\d+)", ep).group(1) - argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient - radiosys = GNURadioControlPortClient(argv=argv, rpcmethod='thrift') + radiosys = GNURadioControlPortClient(hostname, portnum, rpcmethod='thrift') radio = radiosys.client # Get all exported knobs diff --git a/gr-blocks/python/blocks/qa_cpp_py_binding_set.py b/gr-blocks/python/blocks/qa_cpp_py_binding_set.py index 925871e75f..80e0131d21 100644 --- a/gr-blocks/python/blocks/qa_cpp_py_binding_set.py +++ b/gr-blocks/python/blocks/qa_cpp_py_binding_set.py @@ -122,11 +122,10 @@ class test_cpp_py_binding_set(gr_unittest.TestCase): ep = gr.rpcmanager_get().endpoints()[0] hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) portnum = re.search(r"-p (\d+)", ep).group(1) - argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient - radiosys = GNURadioControlPortClient(argv=argv, rpcmethod='thrift') + radiosys = GNURadioControlPortClient(hostname, portnum, rpcmethod='thrift') radio = radiosys.client self.tb.start() diff --git a/gr-blocks/python/blocks/qa_ctrlport_probes.py b/gr-blocks/python/blocks/qa_ctrlport_probes.py index a6dadcf6a3..140986fea3 100644 --- a/gr-blocks/python/blocks/qa_ctrlport_probes.py +++ b/gr-blocks/python/blocks/qa_ctrlport_probes.py @@ -60,11 +60,10 @@ class test_ctrlport_probes(gr_unittest.TestCase): ep = gr.rpcmanager_get().endpoints()[0] hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) portnum = re.search(r"-p (\d+)", ep).group(1) - argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient - radiosys = GNURadioControlPortClient(argv=argv, rpcmethod='thrift') + radiosys = GNURadioControlPortClient(hostname, portnum, rpcmethod='thrift') radio = radiosys.client # Get all exported knobs @@ -101,11 +100,10 @@ class test_ctrlport_probes(gr_unittest.TestCase): ep = gr.rpcmanager_get().endpoints()[0] hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) portnum = re.search(r"-p (\d+)", ep).group(1) - argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient - radiosys = GNURadioControlPortClient(argv=argv, rpcmethod='thrift') + radiosys = GNURadioControlPortClient(hostname, portnum, rpcmethod='thrift') radio = radiosys.client # Get all exported knobs @@ -141,11 +139,10 @@ class test_ctrlport_probes(gr_unittest.TestCase): ep = gr.rpcmanager_get().endpoints()[0] hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) portnum = re.search(r"-p (\d+)", ep).group(1) - argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient - radiosys = GNURadioControlPortClient(argv=argv, rpcmethod='thrift') + radiosys = GNURadioControlPortClient(hostname, portnum, rpcmethod='thrift') radio = radiosys.client # Get all exported knobs @@ -182,11 +179,10 @@ class test_ctrlport_probes(gr_unittest.TestCase): ep = gr.rpcmanager_get().endpoints()[0] hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) portnum = re.search(r"-p (\d+)", ep).group(1) - argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient - radiosys = GNURadioControlPortClient(argv=argv, rpcmethod='thrift') + radiosys = GNURadioControlPortClient(hostname, portnum, rpcmethod='thrift') radio = radiosys.client # Get all exported knobs @@ -222,11 +218,10 @@ class test_ctrlport_probes(gr_unittest.TestCase): ep = gr.rpcmanager_get().endpoints()[0] hostname = re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1) portnum = re.search(r"-p (\d+)", ep).group(1) - argv = [None, hostname, portnum] # Initialize a simple ControlPort client from endpoint from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient - radiosys = GNURadioControlPortClient(argv=argv, rpcmethod='thrift') + radiosys = GNURadioControlPortClient(hostname, portnum, rpcmethod='thrift') radio = radiosys.client # Get all exported knobs |