mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
ci: keep the fastfetch receipt greppable
The payload's stdout is a serial console, so fastfetch reads a tty and decorates its output with cursor escapes; the ^OS: anchor matched nothing and would have failed a green run. --pipe --logo none prints a plain key-value list, and a sed strips anything left before the grep. SPEC records the first measured apt wall time: 24 s cache-warm, boot included.
This commit is contained in:
1 parent
4128092be3
commit
a879631c73
2 files changed
+19
-8
No files matched your search
@@ -151,6 +151,13 @@ jobs:
|
||||
- name: apt update && install fastfetch
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# --pipe --logo none: the payload's stdout is a serial
|
||||
# console, which fastfetch reads as a tty and decorates with
|
||||
# cursor escapes (a first local run grepped nothing); plain
|
||||
# output keeps the receipt readable.
|
||||
timeout 35m ecrou run --quiet -e DEBIAN_FRONTEND=noninteractive ubuntu -- \
|
||||
"apt update && apt install -y fastfetch && fastfetch" | tee /tmp/e2e.log
|
||||
grep -E "^OS:" /tmp/e2e.log
|
||||
"apt update && apt install -y fastfetch && fastfetch --pipe --logo none" \
|
||||
| tee /tmp/e2e.log
|
||||
# Insurance, not the primary check: strip any escape
|
||||
# sequences before anchoring on the fastfetch key.
|
||||
sed -e 's/\x1b\[[0-9;?]*[A-Za-z]//g' /tmp/e2e.log | grep -E "^OS:"
|
||||
Reference in new issue
Block a user