-
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.
Fix the reverse order of data processing in TextualEvent (Wait4prompt…
…s) (#546) * Fix the reverse order of data processing in TextualEvent (Wait4prompts) * matched * fix event doc * version 3.11.1 * f
- Loading branch information
1 parent
e6363ac
commit 1f81965
Showing
9 changed files
with
113 additions
and
9 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
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
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
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,11 +3,22 @@ | |
Testing of ls command. | ||
""" | ||
__author__ = 'Marcin Usielski' | ||
__copyright__ = 'Copyright (C) 2018-2023, Nokia' | ||
__copyright__ = 'Copyright (C) 2018-2024, 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