2 xfstestsdb xunit gc
Anna Schumaker edited this page 2023-07-20 17:10:14 -04:00

The xfstestsdb xunit gc command removes xunit entries from the database that have no associated testcases.

The --dry-run option can be used to print items that would be removed, without actually removing them.

Invocation

$ xfstestsdb xunit gc [--dry-run]

Options

Options Description
--dry-run Print the entries that would be removed, but do not remove them

Exit

Exit Code Description
0 The database has been successfully cleaned up

Examples

$ xfstestsdb xunit gc
run #1 xunit 'xunit-1' has been deleted
run #1 xunit 'xunit-3' has been deleted
run #3 xunit 'xunit-3' has been deleted
run #4 xunit 'xunit-4' has been deleted
$ xfstestsdb xunit gc --dry-run
run #1 xunit 'xunit-1' would be deleted
run #1 xunit 'xunit-3' would be deleted
run #3 xunit 'xunit-3' would be deleted
run #4 xunit 'xunit-4' would be deleted