Skip to content

Commit

Permalink
ci: Archive console.txt
Browse files Browse the repository at this point in the history
So we can debug this.
  • Loading branch information
cgwalters committed Aug 16, 2021
1 parent 9c9c3ed commit 6c3268e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ cosaPod(runAsUser: 0, memory: "3072Mi", cpu: "4") {
}
// The e2e-adopt test will use the ostree commit we just generated above
// but a static qemu base image.
try {
stage("e2e adopt test") {
shwrap("env COSA_DIR=${env.WORKSPACE} ./tests/e2e-adopt/e2e-adopt.sh")
}
Expand All @@ -66,4 +67,7 @@ cosaPod(runAsUser: 0, memory: "3072Mi", cpu: "4") {
// bootupd really can't break upgrades for the OS
fcosKola(cosaDir: "${env.WORKSPACE}", extraArgs: "ext.*bootupd*", skipUpgrade: true)
}
} finally {
archiveArtifacts allowEmptyArchive: true, artifacts: 'tmp/console.txt'
}
}
2 changes: 1 addition & 1 deletion tests/e2e-update/e2e-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ qemuexec_args=(kola qemuexec --propagate-initramfs-failure --qemu-image "${prev_
if test -n "${e2e_debug:-}"; then
runv ${qemuexec_args[@]} --devshell
else
runv timeout 5m "${qemuexec_args[@]}" --console-to-file $(pwd)/console.txt
runv timeout 5m "${qemuexec_args[@]}" --console-to-file ${COSA_DIR}/tmp/console.txt
fi
if ! test -f ${testtmp}/success; then
if test -s ${testtmp}/out.txt; then
Expand Down

0 comments on commit 6c3268e

Please sign in to comment.