diff --git a/scripts/wk/cfg/hw.py b/scripts/wk/cfg/hw.py index 673d45f4..ed040437 100644 --- a/scripts/wk/cfg/hw.py +++ b/scripts/wk/cfg/hw.py @@ -119,6 +119,7 @@ TEMP_COLORS = { 90: 'RED', 100: 'ORANGE_RED', } +TESTSTATION_FILE = '/run/archiso/bootmnt/teststation.name' # THRESHOLDS: Rates used to determine HDD/SSD pass/fail THRESH_HDD_MIN = 50 * 1024**2 THRESH_HDD_AVG_HIGH = 75 * 1024**2 diff --git a/scripts/wk/hw/diags.py b/scripts/wk/hw/diags.py index e5991b3f..f380239e 100644 --- a/scripts/wk/hw/diags.py +++ b/scripts/wk/hw/diags.py @@ -482,6 +482,10 @@ def build_menu(cli_mode=False, quick_mode=False): # Only select quick option(s) menu.options[name]['Selected'] = name in MENU_OPTIONS_QUICK + # Skip CPU tests for TestStations + if os.path.exists(cfg.hw.TESTSTATION_FILE): + menu.options['CPU & Cooling']['Selected'] = False + # Add CLI actions if necessary if cli_mode or 'DISPLAY' not in os.environ: menu.add_action('Reboot')