From 47dde69b4d3e461e43a69485f88ea37dc6da0add Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Mon, 2 May 2022 17:44:01 +0200 Subject: [PATCH] L2SS-769: Disable tests that depend on reading back values from SDP --- .../default/devices/test_device_beamlet.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_beamlet.py b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_beamlet.py index 68b9ca79a..d76ee10e4 100644 --- a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_beamlet.py +++ b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_beamlet.py @@ -55,7 +55,9 @@ class TestDeviceBeamlet(AbstractTestBases.TestDeviceBase): # which is 49152 when read as an uint32. self.assertEqual(-2**14, c_short(49152).value) # check our calculations expected_bf_weights = numpy.array([49152] * 192 * 488, dtype=numpy.uint32) - numpy.testing.assert_almost_equal(expected_bf_weights, calculated_bf_weights) + + # disabled until L2SDP-725 is fixed, as the read back clock cannot be anything else than 0 + #numpy.testing.assert_almost_equal(expected_bf_weights, calculated_bf_weights) def test_sdp_clock_change(self): # Setup configuration @@ -81,6 +83,7 @@ class TestDeviceBeamlet(AbstractTestBases.TestDeviceBase): calculated_bf_weights_200_v2 = self.proxy.calculate_bf_weights(delays.flatten()) # outcome should be changed back and forth across clock changes - numpy.testing.assert_((calculated_bf_weights_200 != calculated_bf_weights_160).all()) - numpy.testing.assert_((calculated_bf_weights_200 == calculated_bf_weights_200_v2).all()) + # disabled until L2SDP-725 is fixed, as the read back clock cannot be anything else than 0 + #numpy.testing.assert_((calculated_bf_weights_200 != calculated_bf_weights_160).all()) + #numpy.testing.assert_((calculated_bf_weights_200 == calculated_bf_weights_200_v2).all()) -- GitLab