'qemu_corefile() -> str
Retrieves the path to a QEMU core dump.'

def qemu_corefile(self):

    corefile_name = 'qemu_{basename}_*_{pid}.core'
    corefile_name = corefile_name.format(basename=self.basename, pid=self.pid)
    corefile_path = os.path.join(self.cwd, corefile_name)
    log.debug(('Trying    corefile_path:    %r' % corefile_path))
    for corefile in sorted(glob.glob(corefile_path), reverse=True):
        return corefile
