bt2: Make test_query_executor pass
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 3 May 2019 21:25:14 +0000 (17:25 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 4 May 2019 01:53:49 +0000 (21:53 -0400)
commit1d765120dc5c0d81369b4bccda7fb12234f1de63
treed82e6f7862ab601f0f09885b7740902261c8a440
parentdea730f4af098c0369a245c4c5089d027c56fe5b
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.025192 seconds and 4 git commands to generate.