Organize automated test suite artifacts in per-run directories
A single test suite generally results in multiple files being created in the TMP dir, e.g.:
- snapshots and disks
- failure screenshots
- network captures
- videos (with #10148 (closed))
Some of these try to encode which test run it belonged to by including a timestamp. This is awkward, especially when developing new tests.
I propose that for the artifacts that reflect some sort of final
result/log that will not be potentially reused in subsequent runs (e.g.
everything above except “snapshots and disks”) we place them in
$TMP/run-$TIMESTAMP-$XXXXXX
, where $TIMESTAMP
is when the test suite
run was started and $XXXXXX
is some random chars decided
mktemp
-style.
Feature Branch: test/10151-organize-artifacts
Related issues
- Related to #10148 (closed)
- Related to #8682 (closed)
- Blocks #10342 (closed)
- Blocks #10445 (closed)
Original created by @anonym on 10151 (Redmine)