Catch non-default server start fail in app server #162
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When test_run:cmd('start server foo') is called from an app test and
tarantool fails to start, the following exception is shown:
| [010] Worker "010_app-tap" received the following error; stopping...
| [010] Traceback (most recent call last):
| [010] File "/home/alex/projects/tarantool-meta/tarantool/test-run/lib/worker.py", line 294, in run_task
| [010] task, self.server, self.inspector)
| [010] File "/home/alex/projects/tarantool-meta/tarantool/test-run/lib/test_suite.py", line 208, in run_test
| [010] short_status = test.run(server)
| [010] File "/home/alex/projects/tarantool-meta/tarantool/test-run/lib/test.py", line 180, in run
| [010] self.execute(server)
| [010] File "/home/alex/projects/tarantool-meta/tarantool/test-run/lib/app_server.py", line 43, in execute
| [010] tarantool.join()
The commit handles this case and the exception should not be shown
anymore.
This commit follows the similar one for tarantool server: 7176ced ('Fix
reporting of non-default server fail at start ').
The reporting of such situations is not ideal for now (we show output
and logs for a default server, but don't do that for non-default one),
but this will be fixed in the scope of #159.
Fixes #115.