From 8ff33547c45a3884e1b308a89eb861eea075edcb Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Tue, 26 Dec 2017 15:16:15 -0700 Subject: [PATCH] Save temps just before stopping Prime95 --- .bin/Scripts/functions/hw_diags.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index f0a43ecd..6cb50bc2 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -141,6 +141,20 @@ def run_mprime(): # Catch CTL+C aborted = True + # Save "final" temps + run_program( + cmd = 'hw-sensors >> "{}/Final Temps.out"'.format( + global_vars['LogDir']).split(), + check = False, + pipe = False, + shell = True) + run_program( + cmd = 'hw-sensors --nocolor >> "{}/Final Temps.log"'.format( + global_vars['LogDir']).split(), + check = False, + pipe = False, + shell = True) + # Stop test run_program('killall -s INT mprime'.split(), check=False) run_program(['apple-fans', 'auto']) @@ -158,7 +172,6 @@ def run_mprime(): if aborted: TESTS['Prime95']['Status'] = 'Aborted' print_warning('\nAborted.') - sleep(5) update_progress() pause('Press Enter to return to menu... ') else: