From 5d70124c39ff638e176e1241bb5b38c447e8be49 Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Wed, 27 Dec 2017 13:42:10 -0700 Subject: [PATCH] Updated badblocks section * Reduced worker pane size * Save badblocks logs in LogDir --- .bin/Scripts/functions/hw_diags.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index b1c5be13..4c7c6541 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -151,7 +151,7 @@ def run_badblocks(): else: # Not testing SMART, SMART CS, or SMART OVERRIDE print_standard(' /dev/{:11} '.format(name+'...'), end='', flush=True) - run_program('tmux split-window -dl 10 {} {} {}'.format( + run_program('tmux split-window -dl 5 {} {} {}'.format( 'hw-diags-badblocks', '/dev/{}'.format(name), progress_file).split()) @@ -168,8 +168,9 @@ def run_badblocks(): else: TESTS['badblocks']['Status'][name] = 'NS' - # Remove temp file - os.remove(progress_file) + # Move temp file + shutil.move(progress_file, '{}/badblocks-{}.log'.format( + global_vars['LogDir'], name)) update_progress() # Done