Add questionable argument to hw-diags

I, the author of this script, strongly recommend against using this!

References issue #139
This commit is contained in:
2Shirt 2021-04-09 04:13:19 -06:00
parent 4b956cb488
commit bed7e79758
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -27,9 +27,15 @@ Usage:
hw-diags (-h | --help)
Options:
-c --cli Force CLI mode
-h --help Show this page
-q --quick Skip menu and perform a quick check
-c --cli Force CLI mode
-h --help Show this page
-q --quick Skip menu and perform a quick check
--ignore-smart-errors NOT RECOMMENDED!
Only use if you have RTFM,
know what you're doing,
understand the risks,
and accept responsibililty.
'''
LOG = logging.getLogger(__name__)
BADBLOCKS_REGEX = re.compile(
@ -250,7 +256,7 @@ class State():
disk.tests['Disk I/O Benchmark'].disabled = True
# Disable tests if necessary
if disable_tests:
if disable_tests and not self.override_all_smart_errors:
disk.disable_disk_tests()
# Wait for self-test(s)
@ -1265,6 +1271,7 @@ def main():
atexit.register(tmux.kill_all_panes)
menu = build_menu(cli_mode=args['--cli'], quick_mode=args['--quick'])
state = State()
state.override_all_smart_errors = args['--ignore-smart-errors'] # pylint: disable=attribute-defined-outside-init
# Quick Mode
if args['--quick']: