test: run.py: return valid errorCode in case of the single test run
Merge pull request #1596 from alalek:test_fix_run_py