Commit 9f709bf5 authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

CT-207: Added test for On/Standby sync commands.

parent 66216474
Loading
Loading
Loading
Loading
Loading
+17 −1
Original line number Original line Diff line number Diff line
@@ -91,7 +91,23 @@ class TestCspMaster(TestBase):
        assert self.midcsp_master.state() == DevState.ON
        assert self.midcsp_master.state() == DevState.ON
        argin = ["mid_csp_cbf/sub_elt/master",]
        argin = ["mid_csp_cbf/sub_elt/master",]
        self.midcsp_master.Standby(argin)
        self.midcsp_master.Standby(argin)
        prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, f"CSP Master not STANDBY")
        prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, 
                             f"CSP Master not STANDBY")
        Poller(4, 0.2).check(prober_state)

    def test_issue_Standby_AFTER_On_command(self):
        """
        Issue the Standby command just after the On command, without waiting
        on the State value.
        To solve SKB-26 bug, the power  commands are now executed in
        synch way.
        """
        self._setup_master()
        argin = ["mid_csp_cbf/sub_elt/master",]
        self.midcsp_master.On(argin)
        self.midcsp_master.Standby(argin)
        prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, 
                             f"CSP Master not STANDBY")
        Poller(4, 0.2).check(prober_state)
        Poller(4, 0.2).check(prober_state)


    '''
    '''