- Notifications
You must be signed in to change notification settings - Fork35
Closed
Description
RemoteOperations::exec_command must not raise and Exception when we defineexpect_error = True
testgres/testgres/operations/remote_ops.py
Lines 90 to 91 incf1d227
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
Assignees
Labels
No labels