Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
2Shirt 2020-02-03 18:16:12 -07:00
commit 1b7c248102
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 4 additions and 2 deletions

View file

@ -35,6 +35,7 @@ NVME_WARNING_KEYS = (
'reliability_degraded',
'volatile_memory_backup_failed',
)
SMART_SELF_TEST_START_TIMEOUT_IN_SECONDS = 120
WK_LABEL_REGEX = re.compile(
fr'{KIT_NAME_SHORT}_(LINUX|UFD)',
re.IGNORECASE,
@ -504,6 +505,9 @@ class Disk(BaseObj):
elif 'remaining_percent' in test_details.get('status', {}):
started = True
elif _i * 5 >= SMART_SELF_TEST_START_TIMEOUT_IN_SECONDS:
# Test didn't start within limit, stop waiting
break
# Check result
if finished:

View file

@ -134,8 +134,6 @@ class Menu():
checkmark = '*'
if 'DISPLAY' in os.environ or PLATFORM == 'Darwin':
checkmark = ''
if os.path.exists('/.wk-live-macos'):
checkmark = '*'
display_name = f'{index if index else name[:1].upper()}: '
if not (index and index >= 10):
display_name = f' {display_name}'