Bug#842299: autopkgtest-virt-qemu: attaching base image makes btrfs very confused

Martin Pitt mpitt at debian.org
Tue Nov 1 15:19:43 UTC 2016


Control: tag -1 pending

Hello Christian,

Christian Seiler [2016-10-31 17:35 +0100]:
> I believe there might be a race condition here: autopkgtest-virt-qemu
> sends udevadm control --reload to the container, but doesn't wait for
> the prompt to reappear, before attaching the device itself. Adding
> VirtSubproc.expect(term, b'#', 10)
> after the udevadm control --reload line helps here.

Well spotted, thanks! This also closes a potential lockup as some
termianals are a bit allergic to not flushing the output.

Many thanks for testing this! I pushed this fix to git, this is much
cleaner and satisfying now.

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the autopkgtest-devel mailing list