Safety wheels off
This commit is contained in:
parent
932669844b
commit
7ac035c578
2 changed files with 8 additions and 16 deletions
|
|
@ -837,13 +837,11 @@ def menu_diags(state, args):
|
||||||
elif selection == 'R':
|
elif selection == 'R':
|
||||||
print('(FAKE) reboot...')
|
print('(FAKE) reboot...')
|
||||||
sleep(1)
|
sleep(1)
|
||||||
# TODO uncomment below
|
run_program(['systemctl', 'reboot'])
|
||||||
#run_program(['systemctl', 'reboot'])
|
|
||||||
elif selection == 'P':
|
elif selection == 'P':
|
||||||
print('(FAKE) poweroff...')
|
print('(FAKE) poweroff...')
|
||||||
sleep(1)
|
sleep(1)
|
||||||
# TODO uncomment below
|
run_program(['systemctl', 'poweroff'])
|
||||||
#run_program(['systemctl', 'poweroff'])
|
|
||||||
elif selection == 'Q':
|
elif selection == 'Q':
|
||||||
break
|
break
|
||||||
elif selection == 'S':
|
elif selection == 'S':
|
||||||
|
|
@ -1242,8 +1240,7 @@ def run_mprime_test(state, test):
|
||||||
message='Getting idle temps...', indent=0,
|
message='Getting idle temps...', indent=0,
|
||||||
function=save_average_temp, cs='Done',
|
function=save_average_temp, cs='Done',
|
||||||
sensor_data=test.sensor_data, temp_label='Idle',
|
sensor_data=test.sensor_data, temp_label='Idle',
|
||||||
seconds=3)
|
seconds=5)
|
||||||
# TODO: Remove seconds kwarg above
|
|
||||||
|
|
||||||
# Stress CPU
|
# Stress CPU
|
||||||
print_log('Starting Prime95')
|
print_log('Starting Prime95')
|
||||||
|
|
@ -1253,9 +1250,7 @@ def run_mprime_test(state, test):
|
||||||
state.panes['mprime'],
|
state.panes['mprime'],
|
||||||
command=['hw-diags-prime95', global_vars['TmpDir']],
|
command=['hw-diags-prime95', global_vars['TmpDir']],
|
||||||
working_dir=global_vars['TmpDir'])
|
working_dir=global_vars['TmpDir'])
|
||||||
#time_limit = int(MPRIME_LIMIT) * 60
|
time_limit = int(MPRIME_LIMIT) * 60
|
||||||
# TODO: restore above line
|
|
||||||
time_limit = 30
|
|
||||||
try:
|
try:
|
||||||
for i in range(time_limit):
|
for i in range(time_limit):
|
||||||
clear_screen()
|
clear_screen()
|
||||||
|
|
@ -1301,14 +1296,12 @@ def run_mprime_test(state, test):
|
||||||
clear_screen()
|
clear_screen()
|
||||||
try_and_print(
|
try_and_print(
|
||||||
message='Letting CPU cooldown for bit...', indent=0,
|
message='Letting CPU cooldown for bit...', indent=0,
|
||||||
function=sleep, cs='Done', seconds=3)
|
function=sleep, cs='Done', seconds=10)
|
||||||
# TODO: Above seconds should be 10
|
|
||||||
try_and_print(
|
try_and_print(
|
||||||
message='Getting cooldown temps...', indent=0,
|
message='Getting cooldown temps...', indent=0,
|
||||||
function=save_average_temp, cs='Done',
|
function=save_average_temp, cs='Done',
|
||||||
sensor_data=test.sensor_data, temp_label='Cooldown',
|
sensor_data=test.sensor_data, temp_label='Cooldown',
|
||||||
seconds=3)
|
seconds=5)
|
||||||
# TODO: Remove seconds kwarg above
|
|
||||||
|
|
||||||
# Move logs to Ticket folder
|
# Move logs to Ticket folder
|
||||||
for item in os.scandir(global_vars['TmpDir']):
|
for item in os.scandir(global_vars['TmpDir']):
|
||||||
|
|
@ -1447,8 +1440,7 @@ def run_nvme_smart_tests(state, test):
|
||||||
# Prep
|
# Prep
|
||||||
test.timeout = test.dev.smart_self_test['polling_minutes'].get(
|
test.timeout = test.dev.smart_self_test['polling_minutes'].get(
|
||||||
'short', 5)
|
'short', 5)
|
||||||
# TODO: fix timeout, set to polling + 5
|
test.timeout = int(test.timeout) + 5
|
||||||
test.timeout = int(test.timeout) + 1
|
|
||||||
_include_short_test = True
|
_include_short_test = True
|
||||||
_self_test_started = False
|
_self_test_started = False
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ KIT_NAME_FULL='WizardKit'
|
||||||
KIT_NAME_SHORT='WK'
|
KIT_NAME_SHORT='WK'
|
||||||
SUPPORT_MESSAGE='Please let 2Shirt know by opening an issue on GitHub'
|
SUPPORT_MESSAGE='Please let 2Shirt know by opening an issue on GitHub'
|
||||||
# Live Linux
|
# Live Linux
|
||||||
MPRIME_LIMIT='7' # of minutes to run Prime95 during hw-diags
|
MPRIME_LIMIT='7' # of minutes to run Prime95 during hw-diags
|
||||||
ROOT_PASSWORD='Abracadabra'
|
ROOT_PASSWORD='Abracadabra'
|
||||||
TECH_PASSWORD='Abracadabra'
|
TECH_PASSWORD='Abracadabra'
|
||||||
# Server IP addresses
|
# Server IP addresses
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue