Closed yanne closed 10 years ago
Original comment by anssi.sy...@eficode.com
on Sep 9, 2013.
This was done by commit https://code.google.com/p/robotframework-sshlibrary/source/detail?r=507f7480cb1f77ab503878a409bc120859cc5cf6
Original comment by pekka.klarck
on Oct 16, 2013.
The revision referenced above only contains tests but I was able to find the implementation that looks like this:
def _output_wanted(self, value):
return (value and str(value).lower() != 'false')
This looks good to be although the surrounding parenthesis are unnecessary.
Keywords
Execute Command
andRead Command Output
argumentsreturn_stdout
,return_stderr
andreturn_rc
should be handled so that non-empty strings evaluate true except forfalse
andFalse
, which should evaluate false. Currently stringsfalse
andFalse
are handled as non-empty strings, hence always evaluate true.This issue was originally opened at Google Code on Sep 9, 2013.