Loading system/blueberry/tests/gd/cert/gd_base_test.py +13 −12 Original line number Diff line number Diff line Loading @@ -126,14 +126,15 @@ class GdBaseTestClass(base_test.BaseTestClass): self.cert.wait_channel_ready() def teardown_test(self): stack = "" try: stack = "CERT" self.cert.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop CERT stack, RpcError={!r}".format(rpc_error)) try: stack = "DUT" self.dut.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop DUT stack, RpcError={!r}".format(rpc_error)) asserts.fail("Failed to stop {} stack, RpcError={!r}".format(stack, rpc_error)) finally: # Destroy GD device objects self._controller_manager.unregister_controllers() teardown_rootcanal( Loading system/gd/cert/gd_base_test.py +12 −11 Original line number Diff line number Diff line Loading @@ -132,14 +132,15 @@ class GdBaseTestClass(BaseTestClass): self.cert.wait_channel_ready() def teardown_test(self): stack = "" try: stack = "CERT" self.cert.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop CERT stack, RpcError={!r}".format(rpc_error)) try: stack = "DUT" self.dut.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop DUT stack, RpcError={!r}".format(rpc_error)) asserts.fail("Failed to stop {} stack, RpcError={!r}".format(stack, rpc_error)) finally: # Destroy GD device objects self._controller_manager.unregister_controllers() teardown_rootcanal( Loading Loading
system/blueberry/tests/gd/cert/gd_base_test.py +13 −12 Original line number Diff line number Diff line Loading @@ -126,14 +126,15 @@ class GdBaseTestClass(base_test.BaseTestClass): self.cert.wait_channel_ready() def teardown_test(self): stack = "" try: stack = "CERT" self.cert.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop CERT stack, RpcError={!r}".format(rpc_error)) try: stack = "DUT" self.dut.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop DUT stack, RpcError={!r}".format(rpc_error)) asserts.fail("Failed to stop {} stack, RpcError={!r}".format(stack, rpc_error)) finally: # Destroy GD device objects self._controller_manager.unregister_controllers() teardown_rootcanal( Loading
system/gd/cert/gd_base_test.py +12 −11 Original line number Diff line number Diff line Loading @@ -132,14 +132,15 @@ class GdBaseTestClass(BaseTestClass): self.cert.wait_channel_ready() def teardown_test(self): stack = "" try: stack = "CERT" self.cert.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop CERT stack, RpcError={!r}".format(rpc_error)) try: stack = "DUT" self.dut.rootservice.StopStack(facade_rootservice.StopStackRequest()) except RpcError as rpc_error: asserts.fail("Failed to stop DUT stack, RpcError={!r}".format(rpc_error)) asserts.fail("Failed to stop {} stack, RpcError={!r}".format(stack, rpc_error)) finally: # Destroy GD device objects self._controller_manager.unregister_controllers() teardown_rootcanal( Loading