summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_nlog10.py
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2021-12-03 06:33:34 -0500
committerGitHub <noreply@github.com>2021-12-03 06:33:34 -0500
commit76cdd1ce10c20d9b67801b23874257aff9616535 (patch)
treef046c0596977025a9517709548d9a02d22d239b3 /gr-blocks/python/blocks/qa_nlog10.py
parent741522bac4e67c6e22ece3b580abf88c046c446e (diff)
qa: update tests to work with OpenEmbedded
* qa_nlog10.py: Update test to check for equal with one less decimal place. On the qemu machines built with OpenEmbedded, this test failed if the check was 5 decimal places. Relaxing to 4 lets the test pass. The volk routines used in the implementation pass QA already. Signed-off-by: Philip Balister <philip@balister.org> * Update QA tests to import helper routines from blocks. The file metadata QA installs a file in blocks, but imported it directly. Updated init.py to import via blocks. matrix interleaver imported some routines from a py file that was available via blocks. These cretaed issues when you install the qa tests in images to run them outside the build area. Signed-off-by: Philip Balister <philip@balister.org> * python formatting Signed-off-by: Josh Morman <jmorman@gnuradio.org> Co-authored-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-blocks/python/blocks/qa_nlog10.py')
-rw-r--r--gr-blocks/python/blocks/qa_nlog10.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/python/blocks/qa_nlog10.py b/gr-blocks/python/blocks/qa_nlog10.py
index e6fb3b942b..9a0ae6da5f 100644
--- a/gr-blocks/python/blocks/qa_nlog10.py
+++ b/gr-blocks/python/blocks/qa_nlog10.py
@@ -29,7 +29,7 @@ class test_nlog10(gr_unittest.TestCase):
self.tb.connect(src, op, dst)
self.tb.run()
result_data = dst.data()
- self.assertFloatTuplesAlmostEqual(expected_result, result_data, 5)
+ self.assertFloatTuplesAlmostEqual(expected_result, result_data, 4)
if __name__ == '__main__':