Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RemoteOperations::exec_command does not handle 'expect_error' parameter correctly #159

Closed
Assignees
dmitry-lipetsk
@dmitry-lipetsk

Description

@dmitry-lipetsk

RemoteOperations::exec_command must not raise and Exception when we defineexpect_error = True

ifexpect_error:
raiseException(result,error)

Test case:

deftest_exec_command_failure__expect_error(self):"""        Test exec_command for command execution failure.        """cmd="nonexistent_command"exit_status,result,error=self.operations.exec_command(cmd,verbose=True,wait_exit=True,shell=True,expect_error=True)asserterror==b'bash: line 1: nonexistent_command: command not found\n'assertexit_status==127assertresult==b''

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp