Skip to content
Snippets Groups Projects

Master

Merged Gianluca Marotta requested to merge master into open-issues
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -98,7 +98,6 @@ class TestCspSubarray(TestBase):
"""
Set the subarray state to OFF-EMPTY
"""
self._setup_subarray()
self.midcsp_subarray01.Off()
prober_subarray_state = Probe(self.midcsp_subarray01, "State", DevState.OFF, f"CSP Master not ON")
Poller(4, 0.2).check(prober_subarray_state)
@@ -109,6 +108,7 @@ class TestCspSubarray(TestBase):
The final subarray state is ON-IDLE
"""
receptor_list = self.midcsp_master.unassignedReceptorIDs
LOGGER.info(f"receptor: {receptor_list}")
# assert the array is not empty
assert receptor_list.any()
# assign all available receptors to the subarray
@@ -139,6 +139,7 @@ class TestCspSubarray(TestBase):
assert obs_state == ObsState.IDLE
receptors = self.midcsp_subarray01.assignedReceptors
LOGGER.info("Receptor assigned to the subarray {}".format(receptors))
assert receptors.any()
try:
LOGGER.info("invoke remove all receptors")
self.midcsp_subarray01.ReleaseAllResources()
@@ -149,7 +150,9 @@ class TestCspSubarray(TestBase):
Poller(4, 0.2).check(prober_obs_state)
obs_state = self.midcsp_subarray01.obsState
LOGGER.info("obs_state:{}".format(obs_state))
LOGGER.info("EMPTY:{}".format(ObsState.EMPTY))
receptors = self.midcsp_subarray01.assignedReceptors
assert not receptors.any()
LOGGER.info("Receptor assigned to the subarray {}".format(receptors))
def _goto_idle(self):
"""
@@ -333,7 +336,6 @@ class TestCspSubarray(TestBase):
prober_subarray_obsstate = Probe(self.midcsp_subarray01, "obsState", ObsState.EMPTY, f"CSP Subarray not EMPTY")
Poller(4, 0.2).check(prober_subarray_obsstate)
receptors = self.midcsp_subarray01.assignedReceptors
LOGGER.info(f'type of {type(receptors)}')
LOGGER.info(f'list of receptors{receptors}')
assert not receptors.any(), f"CSP Subarray is not empty"
@@ -775,9 +777,8 @@ class TestCspSubarray(TestBase):
Poller(4, 0.2).check(prober_obs_state)
@pytest.mark.abort
#@pytest.mark.parametrize("elapsed_time", [0.4, 0.41, 0.42, 0.43, 0.44])
@pytest.mark.parametrize("elapsed_time", [0.42, 0.43, 0.44])
@pytest.mark.parametrize('execution_number', range(2))
@pytest.mark.parametrize("elapsed_time", [0.4, 0.41, 0.415, 0.42, 0.43, 0.44, 0.45])
@pytest.mark.parametrize('execution_number', range(1))
def test_send_abort_WHILE_in_configuring(self, elapsed_time, execution_number):
"""
Test that the subarray is able to handle the Abort command when issued
Loading