From a3d2de92bccd4796af346e3a96d28568d4402ab6 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 11 Mar 2019 12:37:01 -0600 Subject: [PATCH] Show CS/NS in quick mode if self-test is running * It still shows the slightly ambiguous message "all tests disabled" * Addresses issue #96 --- .bin/Scripts/functions/hw_diags.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index c0d46ecf..d68c1b56 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -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')