def tear_down(self):
        UseCaseBase.tear_down(self)

        verdict = Global.SUCCESS
        message = "Success"
        if self.__teardown_script is not None:
            verdict, message = self.__exec_script(self.__teardown_script)

        return verdict, message
Esempio n. 2
0
    def tear_down(self):
        """
        Execute the test
        """

        UseCaseBase.tear_down(self)
        time.sleep(self._duration)

        verdict = self.__get_step_verdict("TEARDOWN")
        return_code = Verdict2Global.map[verdict]

        comment = "(TEARDOWN) " + self._comment
        return return_code, comment
Esempio n. 3
0
 def tear_down(self):
     UseCaseBase.tear_down(self)
     return self.__run_cmds("TEAR_DOWN_CMD", "TEAR_DOWN_TIMEOUT",
                            "TEAR_DOWN_EXPECT_RESULT")