[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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)



Reply to: