tarantool / test-run

Tarantool functional testing framework
14 stars 14 forks source link

tap13: fix worker fail on failed TAP13 parsing #425

Closed Totktonada closed 3 months ago

Totktonada commented 4 months ago

The error is the following.

[050] unit/mp_tuple.test
[050] TAP13 parse failed (Missing plan in the TAP source).
[050]
[050] No result file (unit/mp_tuple.result) found.
[050] Run the test with --update-result option to write the new result file.
[050]
[050] Worker "050_unit" received the following error; stopping...
[050] Traceback (most recent call last):
[050]   File "/__w/tarantool/tarantool/test-run/lib/worker.py", line 347, in run_task
[050]     short_status, duration = self.suite.run_test(
[050]   File "/__w/tarantool/tarantool/test-run/lib/test_suite.py", line 277, in run_test
[050]     short_status = test.run(server)
[050]   File "/__w/tarantool/tarantool/test-run/lib/test.py", line 233, in run
[050]     is_tap, is_ok, is_skip = self.check_tap_output()
[050] ValueError: not enough values to unpack (expected 3, got 2)
[050] Exception: not enough values to unpack (expected 3, got 2)

The worker failure leads to the following error at end of the testing.

[Internal test-run error] The following tasks were dispatched to some worker task queue, but were not reported as done (does not matters success or fail)

It is fixed now.

Follows up #381 Fixes #414

coveralls commented 4 months ago

Coverage Status

coverage: 62.479% (-0.06%) from 62.54% when pulling c55457410d56a94dd62ddd06bf9c6bc507aeaa35 on Totktonada/fix-worker-failure-on-failed-tap13-parsing into 434cbec7d80233992a85eba21f566c9fe8d7ed6d on master.