tests: remove UnexpectedInput from lttng_live_server.py
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Sep 2023 16:28:50 +0000 (12:28 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 20 Oct 2023 23:29:14 +0000 (19:29 -0400)
commitf2958352b96ea9e50f6fbd5647b99d0be97188ec
tree0bce42d5752a8fe207b10c0f1df006677337e80f
parentaca7de769c495565a693605d1f372f1b477cdb70
tests: remove UnexpectedInput from lttng_live_server.py

I don't think this exception is useful, versus just raising a
RuntimeError.

The current code catches exceptions at the top-level, logs it (using
logging.error) and prints it to stderr.  I don't think it's useful to
log using logging.error, since it also goes to stderr.  And I don't
think it's useful to manually print the exception.  Instead, let them
escape and let Python print them using its regular uncaught exception
mechanism, which ends up printing them on stderr too.

Change-Id: Ice797d4b672dc5eba7312c4cabb2740806c37a2a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10894
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/data/plugins/src.ctf.lttng-live/lttng_live_server.py
This page took 0.025256 seconds and 4 git commands to generate.