Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hnez committed Aug 20, 2024
1 parent 152f243 commit f7cc6d9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,25 @@ jobs:
if: ${{ failure() }}
shell: python3 {0}
run: |
PREFIX = "ERROR: Logfile of failure stored in: "
import sys
PREFIX = "ERROR: Logfile of failure stored in:"
for ln in open("build/tmp/log/cooker/lxatac/console-latest.log"):
if not ln.startswith(PREFIX):
continue
path = ln.removeprefix(PREFIX)
content = open(path).read()
log_path = ln.removeprefix(PREFIX).strip()
print("---", file=sys.stderr)
print(ln, file=sys.stderr)
print("---", file=sys.stderr)
print(log_path, file=sys.stderr)
print("---", file=sys.stderr)
content = open(log_path).read()
print("$ cat", path)
print("$ cat", log_path)
print(content)
- name: Persist the disk image
env:
Expand Down

0 comments on commit f7cc6d9

Please sign in to comment.