Show CS/NS in quick mode if self-test is running

* It still shows the slightly ambiguous message "all tests disabled"
* Addresses issue #96
This commit is contained in:
2Shirt 2019-03-11 12:37:01 -06:00
parent 607d4b1e57
commit a3d2de92bc
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -443,7 +443,10 @@ class DiskObj():
# Disable tests if necessary (statuses won't be overwritten)
if test_running:
for t in ['NVMe / SMART', 'badblocks', 'I/O Benchmark']:
if not silent:
# silent is only True in quick_mode
self.disable_test('NVMe / SMART', 'Denied')
for t in ['badblocks', 'I/O Benchmark']:
self.disable_test(t, 'Denied')
elif not disk_ok:
self.disable_test('NVMe / SMART', 'NS')