Fixed exit code of tempest tests

Fixed correct exit from stable tests in post_test_hook.sh and
run_tests.sh.

Closes-Bug: #1299660
Change-Id: I83620ae2ed0d63ce9cbc81db9423bc5e538125e0