From 6d4b32638c15a39475904ff634c07f21b1d4d5ae Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 27 Jun 2017 08:14:28 -0400 Subject: [PATCH] qa/task/qemu: ensure test has access to all generated log files Signed-off-by: Jason Dillaman --- qa/tasks/qemu.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qa/tasks/qemu.py b/qa/tasks/qemu.py index 1a95e74242f..9ad0a41b9eb 100644 --- a/qa/tasks/qemu.py +++ b/qa/tasks/qemu.py @@ -427,6 +427,16 @@ def run_qemu(ctx, config): log.debug('checking that qemu tests succeeded...') for client in config.iterkeys(): (remote,) = ctx.cluster.only(client).remotes.keys() + + # ensure we have permissions to all the logs + log_dir = '{tdir}/archive/qemu/{client}'.format(tdir=testdir, + client=client) + remote.run( + args=[ + 'sudo', 'chmod', 'a+rw', '-R', log_dir + ] + ) + # teardown nfs mount _teardown_nfs_mount(remote, client) # check for test status -- 2.47.3