blob: 6c3a982b5974c26cdef9db0d64c0299c54f9d0be [file] [log] [blame]
koder aka kdanilov4af1c1d2015-05-18 15:48:58 +03001import os.path
2
3import texttable
4
5from ..itest import TwoScriptTest
6
7
8class MysqlTest(TwoScriptTest):
9 root = os.path.dirname(__file__)
10 pre_run_script = os.path.join(root, "prepare.sh")
11 run_script = os.path.join(root, "run.sh")
12
13 @classmethod
14 def format_for_console(cls, data):
15 tab = texttable.Texttable(max_width=120)
16 tab.set_deco(tab.HEADER | tab.VLINES | tab.BORDER)
17 tab.header(["TpmC"])
18 tab.add_row([data['res']['TpmC']])
19 return tab.draw()