When I use below code in a robot file (test.robot)
| | {results}= | Run Process | python3 | {CURDIR}/delete_from_db.py | shell=True
| | should be equal as integers | ${results.rc} | 0
and run this as a shell script as test.robot
#!/bin/bash
robot test.robot
Then I see error as “1 != 0” and it fails.
Note: Script (.py) file is fine and it runs successfully when executed from pycharm IDE (not as a shell script).
Pleas help