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():
|
||||
"""Object to track device objects and overall state."""
|
||||
def __init__(self):
|
||||
self.args = None
|
||||
self.cpu = None
|
||||
self.disks = []
|
||||
self.ost = osTicket(TESTS_CPU, TESTS_DISK)
|
||||
|
|
@ -760,6 +761,7 @@ def get_read_rate(s):
|
|||
def menu_diags(state, args):
|
||||
"""Main menu to select and run HW tests."""
|
||||
args = [a.lower() for a in args]
|
||||
state.args = args
|
||||
checkmark = '*'
|
||||
if 'DISPLAY' in global_vars['Env']:
|
||||
checkmark = '✓'
|
||||
|
|
@ -987,8 +989,8 @@ def run_hw_tests(state):
|
|||
state.init()
|
||||
tests_enabled = False
|
||||
|
||||
# Disable osTicket Integration if in quick mode
|
||||
state.ost.disabled |= state.quick_mode
|
||||
# Disable osTicket Integration if necessary
|
||||
state.ost.disabled |= '--quick' in state.args
|
||||
|
||||
# Build Panes
|
||||
update_progress_pane(state)
|
||||
|
|
|
|||
Loading…
Reference in a new issue