Table of Contents
The xfstestsdb xunit list
command prints out the xunit entries that have been added to the xunits database table.
This command will print output in color by default when running in interactive mode. The "--color=" option can be used to print output in either light or dark color schemes or to disable color altogether. The default color scheme is "dark", but this can be overridden by setting the XFSTESTSDB_COLORS
environment variable. The FORCE_COLOR
and NO_COLOR
environment variables can be used to force or disable color usage, which can be useful when piping to another command such as less -r
The table will be printed with Run, Device, Xunit, and Hostname columns by default. The "--timestamp" and "--results" options can be used to also show the Timestamps and (Pass, Fail, Skip, Time) results for each run.
The --device
, --hostname=
, --runid=
, --timestamp=
, and --xunit=
options are used to narrow down the entries that are printed out to those that have a matching device, hostname, runid, timestamp, or xunit. These options can be combined, and take a valid SQLite GLOB pattern.
Invocation
$ xfstestsdb xunit list [--color[={light|dark|none}]] [--device <device>] [--hostname <hostname>] [--results] [--runid <runid>] [--timestamp <timestamp>] [--xunit <xunit>]
Options
Options | Choices | Description |
---|---|---|
--color[=] |
light, dark, none | The color output choice |
--device= |
Show entries that match the given device pattern | |
--hostname= |
Show entries that match the given hostname pattern | |
--results |
Show the Results column | |
--runid= |
Show entries that match the given runid pattern | |
--timestamp= |
Show the Timestamp column and (optionally) filter for the given timestamp pattern | |
--xunit= |
Show entries that match the given xunit pattern |
Exit
Exit Code | Description |
---|---|
0 |
The results have been successfully printed out |
Examples
$ xfstestsdb xunit list --color=none
+-----+-----------+---------+----------+
| run | device | xunit | hostname |
+-----+-----------+---------+----------+
| 1 | /dev/vda1 | xunit-1 | myhost1 |
| 1 | /dev/vda1 | xunit-2 | myhost1 |
| 1 | /dev/vda1 | xunit-3 | myhost1 |
| 1 | /dev/vda1 | xunit-4 | myhost1 |
| 3 | /dev/vdb2 | xunit-3 | myhost2 |
| 3 | /dev/vdb2 | xunit-4 | myhost2 |
+-----+-----------+---------+----------+
$ xfstestsdb xunit list --color=none --results
+-----+-----------+---------+----------+------+------+------+--------+
| run | device | xunit | hostname | pass | fail | skip | time |
+-----+-----------+---------+----------+------+------+------+--------+
| 1 | /dev/vda1 | xunit-1 | myhost1 | 119 | 4 | 444 | 1194 s |
| 1 | /dev/vda1 | xunit-2 | myhost1 | 113 | 9 | 445 | 869 s |
| 1 | /dev/vda1 | xunit-3 | myhost1 | 116 | 9 | 442 | 1100 s |
| 1 | /dev/vda1 | xunit-4 | myhost1 | 206 | 17 | 344 | 1373 s |
| 3 | /dev/vdb2 | xunit-3 | myhost2 | 116 | 9 | 442 | 1100 s |
| 3 | /dev/vdb2 | xunit-4 | myhost2 | 206 | 17 | 344 | 1373 s |
+-----+-----------+---------+----------+------+------+------+--------+
$ xfstestsdb xunit list --color=none --results --hostname "my*2"
+-----+-----------+---------+----------+------+------+------+--------+
| run | device | xunit | hostname | pass | fail | skip | time |
+-----+-----------+---------+----------+------+------+------+--------+
| 3 | /dev/vdb2 | xunit-3 | myhost2 | 116 | 9 | 442 | 1100 s |
| 3 | /dev/vdb2 | xunit-4 | myhost2 | 206 | 17 | 344 | 1373 s |
+-----+-----------+---------+----------+------+------+------+--------+