bt2: Make test_query_executor pass
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 3 May 2019 21:25:14 +0000 (17:25 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 6 May 2019 14:21:32 +0000 (10:21 -0400)
commit7d0e6fe8deb8156d182b2f44d26f48e5df696aaf
tree79f55acbab6768838432646d3173e428804c4c06
parentc28a5d89421c1917fc74c6e5805c055a2d0978dd
bt2: Make test_query_executor pass

This patch fixes and enables test_query_executor.py.

The only important change is in the query method: it is necessary to
check for `is_canceled` prior to calling the API function, since it
asserts that the executor is not cancelled.

I have removed the __eq__ method and tests, since it's quite unlikely to
be useful for the QueryExecutor class.

Change-Id: If88c2552627358b06f7d6068126034a20ebf88e8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1252
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
bindings/python/bt2/bt2/query_executor.py
tests/bindings/python/bt2/test_query_executor.py
This page took 0.027924 seconds and 4 git commands to generate.