parent
8075dfe45c
commit
a19714d735
2 changed files with 5 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ TEMP_COLORS = {
|
||||||
90: 'RED',
|
90: 'RED',
|
||||||
100: 'ORANGE_RED',
|
100: 'ORANGE_RED',
|
||||||
}
|
}
|
||||||
|
TESTSTATION_FILE = '/run/archiso/bootmnt/teststation.name'
|
||||||
# THRESHOLDS: Rates used to determine HDD/SSD pass/fail
|
# THRESHOLDS: Rates used to determine HDD/SSD pass/fail
|
||||||
THRESH_HDD_MIN = 50 * 1024**2
|
THRESH_HDD_MIN = 50 * 1024**2
|
||||||
THRESH_HDD_AVG_HIGH = 75 * 1024**2
|
THRESH_HDD_AVG_HIGH = 75 * 1024**2
|
||||||
|
|
|
||||||
|
|
@ -482,6 +482,10 @@ def build_menu(cli_mode=False, quick_mode=False):
|
||||||
# Only select quick option(s)
|
# Only select quick option(s)
|
||||||
menu.options[name]['Selected'] = name in MENU_OPTIONS_QUICK
|
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
|
# Add CLI actions if necessary
|
||||||
if cli_mode or 'DISPLAY' not in os.environ:
|
if cli_mode or 'DISPLAY' not in os.environ:
|
||||||
menu.add_action('Reboot')
|
menu.add_action('Reboot')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue