From 8fffdc81c5987301584ffefe43e5267dfff84f71 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Wed, 23 Aug 2023 17:00:58 +0200 Subject: [PATCH] tests/vfio: Capture journal from vm For debugging (though this doesn't get exposed yet). Signed-off-by: Jeremi Piotrowski --- tests/functional/vfio/vfio_fedora_vm_wrapper.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/vfio/vfio_fedora_vm_wrapper.sh b/tests/functional/vfio/vfio_fedora_vm_wrapper.sh index 3d666e0223..07ef83874b 100755 --- a/tests/functional/vfio/vfio_fedora_vm_wrapper.sh +++ b/tests/functional/vfio/vfio_fedora_vm_wrapper.sh @@ -160,7 +160,8 @@ ${environment} sudo mkdir -p /workspace sudo mount -t 9p -o access=any,trans=virtio,version=9p2000.L workspace /workspace - trap "cd \${tests_repo_dir}; sudo -E PATH=\$PATH .ci/teardown.sh ${artifacts_dir} || true; sudo chown -R \${USER} ${artifacts_dir}" EXIT + mkdir -p ${artifacts_dir} + trap "cd /workspace; sudo journalctl -b0 > ${artifacts_dir}/journal.log || true; sudo chown -R \${USER} ${artifacts_dir}" EXIT pushd /workspace source tests/common.bash