ext,tests: Fix --figures flag when using ./main.py list

Now the "tests/main.py" script will accept the `--fixtures` flag when
using the `list` command. This will only list the fixtures needed.

To have this implemented `__str__` for the `Fixture` class has been
implemented.

Change-Id: I4bba26e923c8b0001163726637f2e48c801e92b1
This commit is contained in:
Bobby R. Bruce
2023-09-04 15:42:35 -07:00
parent c36a4d12aa
commit 43226004a1
3 changed files with 13 additions and 0 deletions

View File

@@ -55,6 +55,13 @@ class QueryRunner(object):
for test in suite:
log.test_log.message(test.uid, machine_readable=True)
def list_fixtures(self):
log.test_log.message(terminal.separator())
log.test_log.message('Listing all Test Fixtures.', bold=True)
log.test_log.message(terminal.separator())
for fixture in self.schedule.all_fixtures():
log.test_log.message(fixture, machine_readable=True)
def list_suites(self):
log.test_log.message(terminal.separator())
log.test_log.message("Listing all Test Suites.", bold=True)