From 62c9d82fd2cba7166c7c572e8de9f64387c2a417 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 4 Dec 2018 17:05:53 -0700 Subject: [PATCH] Adjusted placeholders --- .bin/Scripts/functions/hw_diags.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index 3de0806f..4593392f 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -373,9 +373,15 @@ def menu_diags(state, args): # Tubes is close to pipes right? secret_screensaver('pipes') elif selection == 'R': - run_program(['systemctl', 'reboot']) + print('(FAKE) reboot...') + sleep(1) + # TODO uncomment below + #run_program(['systemctl', 'reboot']) elif selection == 'P': - run_program(['systemctl', 'poweroff']) + print('(FAKE) poweroff...') + sleep(1) + # TODO uncomment below + #run_program(['systemctl', 'poweroff']) elif selection == 'Q': break elif selection == 'S': @@ -383,10 +389,8 @@ def menu_diags(state, args): def run_audio_test(): """Run audio test.""" - # TODO: Enable real test and remove placeholder clear_screen() - print('Fake audio placeholder for now...') - #run_program(['hw-diags-audio'], check=False, pipe=False) + run_program(['hw-diags-audio'], check=False, pipe=False) pause('Press Enter to return to main menu... ') def run_hw_tests(state): @@ -403,23 +407,17 @@ def run_hw_tests(state): 'Enabled' if v['Enabled'] else 'Disabled', COLORS['CLEAR'], QUICK_LABEL if state.quick_mode and 'NVMe' in k else '')) - print('\nFake test(s) placeholder for now...') - pause('Press Enter to return to main menu... ') + pause('\nPress Enter to return to main menu... ') def run_keyboard_test(): """Run keyboard test.""" - # TODO: Enable real test and remove placeholder clear_screen() - print('Fake keyboard placeholder for now...') - #run_program(['xev', '-event', 'keyboard'], check=False, pipe=False) - pause('Press Enter to return to main menu... ') + run_program(['xev', '-event', 'keyboard'], check=False, pipe=False) def run_network_test(): """Run network test.""" - # TODO: Enable real test and remove placeholder clear_screen() - print('Fake network placeholder for now...') - #run_program(['hw-diags-network'], check=False, pipe=False) + run_program(['hw-diags-network'], check=False, pipe=False) pause('Press Enter to return to main menu... ') def secret_screensaver(screensaver=None):