SSHLibrary icon indicating copy to clipboard operation
SSHLibrary copied to clipboard

Write takes argument from the last Write keyword executed

Open MustBeMerrick opened this issue 2 years ago • 1 comments

This is a similar, if not identical issue to issue387.

I have the following keyword sequence:

Write  source /home/file\n
Read Until Prompt  strip_prompt=True
Write  rm -rf /path/to/some/other/dir
Read Until Prompt  strip_prompt=True

The TRACE return of the second Write keyword is:
TRACE Return: ' source /home/file\r\n' and the TRACE return of the second Read Until Prompt keyword is: TRACE Return: 'rm -rf /path/to/some/other/dir\r\n'

So it seems that the argument of the first Write keyword was queued on the remote system, and the second Write keyword argument was returned as the stdout of itself (rm -rf /path/to/some/other/dir had a stdout of rm -rf /path/to/some/other/dir)

Any help is appreciated

MustBeMerrick avatar Feb 17 '23 23:02 MustBeMerrick

I noticed that it somehow relates to os , i have similar scenario. On windows it fails with same error (eg if i run it from win machine, but when i run it on docker it works)

vr-n-able avatar Oct 12 '23 13:10 vr-n-able