2. pywatch_test - gdb not installed
We need to add gdb and install install python-debuginfo package on
the test images.
self = <pywatch_test.TestPyWatch object at 0x2bbc0d0>
def test_timeout(self):
rc, out, err = exec_cmd(['./py-watch', '0.1', 'sleep', '10'])
assert b'Watched process timed out' in out
> assert rc == 128 + signal.SIGTERM
E assert 1 == (128 + 15)
E + where 15 = signal.SIGTERM
pywatch_test.py:45: AssertionError
------------------------------ Captured log call -------------------------------
cmdutils.py 151 DEBUG ./py-watch 0.1 sleep 10 (cwd None)
cmdutils.py 159 DEBUG FAILED: <err> = 'Traceback (most recent call last):\n File "./py-watch", line 59, in <module>\n dump_trace(watched_proc)\n File "./py-watch", line 32, in dump_trace\n \'thread apply all py-bt\'])\n File "/usr/lib64/python2.7/site-packages/subprocess32.py", line 575, in call\n p = Popen(*popenargs, **kwargs)\n File "/usr/lib64/python2.7/site-packages/subprocess32.py", line 822, in __init__\n restore_signals, start_new_session)\n File "/usr/lib64/python2.7/site-packages/subprocess32.py", line 1567, in _execute_child\n raise child_exception_type(errno_num, err_msg)\nOSError: [Errno 2] No such file or directory: \'gdb\'\n'; <rc> = 1