Formatting cleanup
This commit is contained in:
parent
91a77bb14e
commit
e5f0ccb5d5
1 changed files with 10 additions and 8 deletions
|
|
@ -591,8 +591,8 @@ def build_outer_panes(state):
|
||||||
# Started
|
# Started
|
||||||
state.panes['Started'] = tmux_split_window(
|
state.panes['Started'] = tmux_split_window(
|
||||||
lines=SIDE_PANE_WIDTH, target_pane=state.panes['Top'],
|
lines=SIDE_PANE_WIDTH, target_pane=state.panes['Top'],
|
||||||
text='{BLUE}Started{CLEAR}\n{text}'.format(
|
text='{BLUE}Started{CLEAR}\n{s}'.format(
|
||||||
text=time.strftime("%Y-%m-%d %H:%M %Z"),
|
s=time.strftime("%Y-%m-%d %H:%M %Z"),
|
||||||
**COLORS))
|
**COLORS))
|
||||||
|
|
||||||
# Progress
|
# Progress
|
||||||
|
|
@ -868,7 +868,8 @@ def run_badblocks_test(state, test):
|
||||||
# Update tmux layout
|
# Update tmux layout
|
||||||
tmux_update_pane(
|
tmux_update_pane(
|
||||||
state.panes['Top'],
|
state.panes['Top'],
|
||||||
text='{}\nbadblocks: {}'.format(TOP_PANE_TEXT, test.dev.description))
|
text='{}\nbadblocks: {}'.format(
|
||||||
|
TOP_PANE_TEXT, test.dev.description))
|
||||||
test.tmux_layout = TMUX_LAYOUT.copy()
|
test.tmux_layout = TMUX_LAYOUT.copy()
|
||||||
test.tmux_layout.update({
|
test.tmux_layout.update({
|
||||||
'badblocks': {'y': 5, 'Check': True},
|
'badblocks': {'y': 5, 'Check': True},
|
||||||
|
|
@ -1406,7 +1407,8 @@ def run_nvme_smart_tests(state, test):
|
||||||
# Update tmux layout
|
# Update tmux layout
|
||||||
tmux_update_pane(
|
tmux_update_pane(
|
||||||
state.panes['Top'],
|
state.panes['Top'],
|
||||||
text='{}\nDisk Health: {}'.format(TOP_PANE_TEXT, test.dev.description))
|
text='{}\nDisk Health: {}'.format(
|
||||||
|
TOP_PANE_TEXT, test.dev.description))
|
||||||
test.tmux_layout = TMUX_LAYOUT.copy()
|
test.tmux_layout = TMUX_LAYOUT.copy()
|
||||||
test.tmux_layout.update({
|
test.tmux_layout.update({
|
||||||
'smart': {'y': 3, 'Check': True},
|
'smart': {'y': 3, 'Check': True},
|
||||||
|
|
@ -1554,8 +1556,8 @@ def show_results(state):
|
||||||
"""Show results for all tests."""
|
"""Show results for all tests."""
|
||||||
clear_screen()
|
clear_screen()
|
||||||
tmux_update_pane(
|
tmux_update_pane(
|
||||||
state.panes['Top'], text='{}\n{}'.format(
|
state.panes['Top'],
|
||||||
TOP_PANE_TEXT, 'Results'))
|
text='{}\nResults'.format(TOP_PANE_TEXT))
|
||||||
|
|
||||||
# CPU tests
|
# CPU tests
|
||||||
_enabled = False
|
_enabled = False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue