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:
parent
4b956cb488
commit
bed7e79758
1 changed files with 11 additions and 4 deletions
|
|
@ -27,9 +27,15 @@ Usage:
|
||||||
hw-diags (-h | --help)
|
hw-diags (-h | --help)
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-c --cli Force CLI mode
|
-c --cli Force CLI mode
|
||||||
-h --help Show this page
|
-h --help Show this page
|
||||||
-q --quick Skip menu and perform a quick check
|
-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__)
|
LOG = logging.getLogger(__name__)
|
||||||
BADBLOCKS_REGEX = re.compile(
|
BADBLOCKS_REGEX = re.compile(
|
||||||
|
|
@ -250,7 +256,7 @@ class State():
|
||||||
disk.tests['Disk I/O Benchmark'].disabled = True
|
disk.tests['Disk I/O Benchmark'].disabled = True
|
||||||
|
|
||||||
# Disable tests if necessary
|
# Disable tests if necessary
|
||||||
if disable_tests:
|
if disable_tests and not self.override_all_smart_errors:
|
||||||
disk.disable_disk_tests()
|
disk.disable_disk_tests()
|
||||||
|
|
||||||
# Wait for self-test(s)
|
# Wait for self-test(s)
|
||||||
|
|
@ -1265,6 +1271,7 @@ def main():
|
||||||
atexit.register(tmux.kill_all_panes)
|
atexit.register(tmux.kill_all_panes)
|
||||||
menu = build_menu(cli_mode=args['--cli'], quick_mode=args['--quick'])
|
menu = build_menu(cli_mode=args['--cli'], quick_mode=args['--quick'])
|
||||||
state = State()
|
state = State()
|
||||||
|
state.override_all_smart_errors = args['--ignore-smart-errors'] # pylint: disable=attribute-defined-outside-init
|
||||||
|
|
||||||
# Quick Mode
|
# Quick Mode
|
||||||
if args['--quick']:
|
if args['--quick']:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue