]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/task/qemu: ensure test has access to all generated log files
authorJason Dillaman <dillaman@redhat.com>
Tue, 27 Jun 2017 12:14:28 +0000 (08:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 27 Jun 2017 16:48:11 +0000 (12:48 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/tasks/qemu.py

index 1a95e74242f6a6126107902e8d92b0cdad368940..9ad0a41b9eb0504098805dfc67c46d1771dd0f0f 100644 (file)
@@ -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