Post quick SMART results if run from menu

* --quick argument still disables osTicket integration
* Fixes issue #81
This commit is contained in:
2Shirt 2019-04-25 19:28:34 -07:00
parent eb80580794
commit f6fdc047cf
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

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