-
Notifications
You must be signed in to change notification settings - Fork 304
/
cart_rpc_two_node.py
executable file
·51 lines (38 loc) · 1.2 KB
/
cart_rpc_two_node.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/python
'''
(C) Copyright 2018-2021 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
'''
from __future__ import print_function
import sys
from apricot import TestWithoutServers
sys.path.append('./util')
# Can't all this import before setting sys.path
# pylint: disable=wrong-import-position
from cart_utils import CartUtils
class CartRpcTwoNodeTest(TestWithoutServers):
"""
Runs basic CaRT RPC tests
:avocado: recursive
"""
def setUp(self):
""" Test setup """
print("Running setup\n")
self.utils = CartUtils()
self.env = self.utils.get_env(self)
def tearDown(self):
""" Tear down """
self.report_timeout()
self._teardown_errors.extend(self.utils.cleanup_processes())
super().tearDown()
def test_cart_rpc(self):
"""
Test CaRT RPC
:avocado: tags=all,cart,pr,daily_regression,rpc,two_node
"""
srvcmd = self.utils.build_cmd(self, self.env, "test_servers")
clicmd = self.utils.build_cmd(self, self.env, "test_clients")
self.utils.launch_srv_cli_test(self, srvcmd, clicmd)
self.utils.log_check(self)
if __name__ == "__main__":
main()