Skip to content

Commit 6285d38

Browse files
committed
Update the test command for test_ssdhealth in show_test.py
1 parent e96e5d7 commit 6285d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/show_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def test_ssdhealth(self, mock_popen, mock_run_command):
638638
print(result.exit_code)
639639
print(result.output)
640640
assert result.exit_code == 0
641-
mock_popen.assert_called_once_with('lsblk -o NAME,TYPE -p | grep disk')
641+
mock_popen.assert_called_once_with("lsblk -l -o NAME,TYPE,MOUNTPOINT -p | grep -w '/host'")
642642
mock_run_command.assert_called_once_with(['sudo', 'ssdutil', '-d', '/dev/sda', '-v', '-e'], display_cmd=True)
643643

644644
@patch('utilities_common.cli.run_command')

0 commit comments

Comments
 (0)