Skip CPU tests by default for TestStations

Addresses #179
This commit is contained in:
2Shirt 2021-12-14 14:08:22 -07:00
parent 8075dfe45c
commit a19714d735
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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')