Skip to content

Commit

Permalink
added some test cases for read,write strin/path sonic-kdump-config-test
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadalihussnain committed Sep 28, 2024
1 parent eb1a597 commit bc212a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/sonic_kdump_config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def test_cmd_kdump_ssh_path_none(self, mock_print, mock_read, mock_run):
def test_kdump_enable_remote(
self, mock_locate, mock_search_kernel, mock_search_cmdline,
mock_rewrite, mock_write_kdump, mock_run, mock_open
):
):
# Setup mocks
mock_locate.return_value = 0 # Image found at index 0
mock_search_cmdline.return_value = None # No crashkernel set in cmdline
Expand All @@ -483,9 +483,9 @@ def test_kdump_enable_remote(
@patch('sonic_kdump_config.search_for_crash_kernel')
@patch('sonic_kdump_config.locate_image')
def test_kdump_enable_remote_error(
self, mock_locate, mock_search_kernel, mock_search_cmdline,
mock_rewrite, mock_write_kdump, mock_run, mock_open
):
self, mock_locate, mock_search_kernel, mock_search_cmdline,
mock_rewrite, mock_write_kdump, mock_run, mock_open
):
# Setup mocks
mock_locate.return_value = 0 # Image found at index 0
mock_search_cmdline.return_value = None # No crashkernel set in cmdline
Expand Down

0 comments on commit bc212a5

Please sign in to comment.