hooks: log test results to logs/test-runs.log with dd.mmm.yyyy timestamps
--- Build: pass | Tests: pass — Tests 395 passed | 10 skipped (405)
This commit is contained in:
parent
2d40d3e547
commit
3870c7a536
1 changed files with 1 additions and 1 deletions
|
|
@ -34,6 +34,6 @@ FOOTER="Build: ${BUILD_STATUS} | Tests: ${TEST_STATUS}${TEST_DETAIL:+ — ${TEST
|
|||
|
||||
# Also append to local log (gitignored, survives between pushes)
|
||||
COMMIT_SUBJECT=$(head -1 "$COMMIT_MSG_FILE")
|
||||
TIMESTAMP=$(date '+%Y-%m-%d %H:%M')
|
||||
TIMESTAMP=$(./scripts/date-format.sh display-ts 2>/dev/null || date '+%d.%b.%Y %H:%M:%S' | tr '[:upper:]' '[:lower:]')
|
||||
mkdir -p logs
|
||||
printf '%s | %s | %s\n' "$TIMESTAMP" "$FOOTER" "$COMMIT_SUBJECT" >> logs/test-runs.log
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue