tests: Correct tap_generator skip() when count is greater than 1
authorKienan Stewart <kstewart@efficios.com>
Fri, 9 Feb 2024 14:08:07 +0000 (09:08 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 7 Mar 2024 17:12:12 +0000 (12:12 -0500)
commitd46c935357f0c559289245b9e2b25c8cfaf9d831
treeb983fa659c53864ddcd23f05261147f42b07af94
parented1b6b66f5b5d319e86aa7522edbf7517c7ed25d
tests: Correct tap_generator skip() when count is greater than 1

Issue observed
==============

Output when skipping multiple was incorrectly printing the test case number,
eg.

```
ok 3 - Start session `session_ldr8cxix`
41
ok 4 # Skip: Test application 'gen-ust-events-constructor/gen-ust-events-constructor-so' not found
ok 6 # Skip: Test application 'gen-ust-events-constructor/gen-ust-events-constructor-so' not found
ok 8 # Skip: Test application
'gen-ust-events-constructor/gen-ust-events-constructor-so' not found
```

Cause
=====

The `test_number` was adding the current index to the already modified
`self._last_test_case_id`.

Solution
========

Use `self._last_test_case_id` with no changes.

Known drawbacks
===============

None.

Change-Id: I8ff16b83619cf6e6db2636eeccd58725cc03d0f8
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/tap_generator.py
This page took 0.027012 seconds and 4 git commands to generate.