Commit Graph

2 Commits

Author SHA1 Message Date
Anna Schumaker 4600258721 new: Add a --terse option
This causes `xfstestsdb new` to only print out the new runid, making it
easier for scripting.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2024-04-25 17:05:51 -04:00
Anna Schumaker 6a6fe5dda8 xfstestsdb: Create the `xfstestsdb new` command
This command inserts a new row into the xfstests_runs table and prints
out the result.

Note that sqlite stores timestamps as UTC, so I use the datetime()
function to convert to localtime when returning the new row.

Implements: #1 (`xfstestsdb new`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:56:42 -05:00