Post quick SMART results if run from menu
* --quick argument still disables osTicket integration * Fixes issue #81
This commit is contained in:
parent
eb80580794
commit
f6fdc047cf
1 changed files with 4 additions and 2 deletions
|
|
@ -474,6 +474,7 @@ class DiskObj():
|
||||||
class State():
|
class State():
|
||||||
"""Object to track device objects and overall state."""
|
"""Object to track device objects and overall state."""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
self.args = None
|
||||||
self.cpu = None
|
self.cpu = None
|
||||||
self.disks = []
|
self.disks = []
|
||||||
self.ost = osTicket(TESTS_CPU, TESTS_DISK)
|
self.ost = osTicket(TESTS_CPU, TESTS_DISK)
|
||||||
|
|
@ -760,6 +761,7 @@ def get_read_rate(s):
|
||||||
def menu_diags(state, args):
|
def menu_diags(state, args):
|
||||||
"""Main menu to select and run HW tests."""
|
"""Main menu to select and run HW tests."""
|
||||||
args = [a.lower() for a in args]
|
args = [a.lower() for a in args]
|
||||||
|
state.args = args
|
||||||
checkmark = '*'
|
checkmark = '*'
|
||||||
if 'DISPLAY' in global_vars['Env']:
|
if 'DISPLAY' in global_vars['Env']:
|
||||||
checkmark = '✓'
|
checkmark = '✓'
|
||||||
|
|
@ -987,8 +989,8 @@ def run_hw_tests(state):
|
||||||
state.init()
|
state.init()
|
||||||
tests_enabled = False
|
tests_enabled = False
|
||||||
|
|
||||||
# Disable osTicket Integration if in quick mode
|
# Disable osTicket Integration if necessary
|
||||||
state.ost.disabled |= state.quick_mode
|
state.ost.disabled |= '--quick' in state.args
|
||||||
|
|
||||||
# Build Panes
|
# Build Panes
|
||||||
update_progress_pane(state)
|
update_progress_pane(state)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue