-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Fix the reverse order of data processing by Wait4prompts"
This reverts commit 50b2e99.
- Loading branch information
1 parent
50b2e99
commit e6363ac
Showing
3 changed files
with
5 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,11 @@ | |
Testing of ls command. | ||
""" | ||
__author__ = 'Marcin Usielski' | ||
__copyright__ = 'Copyright (C) 2018-2024, Nokia' | ||
__copyright__ = 'Copyright (C) 2018-2023, Nokia' | ||
__email__ = '[email protected]' | ||
|
||
import pytest | ||
from moler.cmd.unix.ls import Ls | ||
from moler.exceptions import CommandFailure | ||
|
||
|
||
def test_lines_split(buffer_connection): | ||
output = r"ls *_SYSLOG*.log" + chr(0x0D) + chr(0x0A) + "ls: cannot access '*_SYSLOG*.log': No such file or directory" + chr(0x0D) + chr(0x0A) + "moler_bash# " | ||
buffer_connection.remote_inject_response([output]) | ||
ls_cmd = Ls(connection=buffer_connection.moler_connection, options="*_SYSLOG*.log") | ||
ls_cmd.command_string = "ls *_SYSLOG*.log" | ||
with pytest.raises(CommandFailure): | ||
ls_cmd() | ||
|
||
|
||
def test_calling_ls_returns_result_parsed_from_command_output(buffer_connection, command_output_and_expected_result): | ||
command_output, expected_result = command_output_and_expected_result | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters