summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-02-18 17:55:14 -0500
committerTom Rondeau <trondeau@vt.edu>2013-02-18 17:55:14 -0500
commit29f51e3f95acb3918cf5ef9e9134254e256afbb4 (patch)
treedd033c765aa9033506e76378541aedea89bcd379 /gnuradio-core/src/python
parent405e89c48e9a20f45d74494ac08b026de27d3ee6 (diff)
ctrlport: adding a config param to enable/disable controlport, default=disabled.
Also updates QA code for ctrlport to turn controlport on via env var.
Diffstat (limited to 'gnuradio-core/src/python')
-rwxr-xr-xgnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding.py2
-rwxr-xr-xgnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding_set.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding.py b/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding.py
index 34c7d0f5df..a8b6de8c53 100755
--- a/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding.py
+++ b/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding.py
@@ -30,6 +30,7 @@ from gnuradio import gr, gr_unittest
from gnuradio.ctrlport import GNURadio
from gnuradio import ctrlport
+import os
def get1():
return "success"
@@ -69,6 +70,7 @@ class test_cpp_py_binding(gr_unittest.TestCase):
def setUp(self):
self.tb = gr.top_block()
+ os.environ['GR_CONF_CONTROLPORT_ON'] = 'True'
def tearDown(self):
self.tb = None
diff --git a/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding_set.py b/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding_set.py
index 8b1b15022c..4ca120099c 100755
--- a/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding_set.py
+++ b/gnuradio-core/src/python/gnuradio/ctrlport/qa_cpp_py_binding_set.py
@@ -30,6 +30,7 @@ from gnuradio import gr, gr_unittest
from gnuradio.ctrlport import GNURadio
from gnuradio import ctrlport
+import os
class inc_class:
def __init__(self,val):
@@ -51,6 +52,7 @@ getset3 = inc_class("test");
class test_cpp_py_binding_set(gr_unittest.TestCase):
def setUp(self):
self.tb = gr.top_block()
+ os.environ['GR_CONF_CONTROLPORT_ON'] = 'True'
def tearDown(self):
self.tb = None