commit | dc2ac6a7c131148e1271ec673d9aaba93e8dae3f | [log] [tgz] |
---|---|---|
author | lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> | Wed Jun 10 19:15:49 2009 +0000 |
committer | lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> | Wed Jun 10 19:15:49 2009 +0000 |
tree | c2da748f7ae311bb7412ea44e6dfb79b4f78632a | |
parent | 3867f04463f358f22fa8fce022b9fdfa575ad5f0 [diff] |
kvm_vm.py: create a lock file to avoid VM creation in parallel VM.create() does a few things (such as finding free ports) which are not safe to execute in parallel. Use a lock file to make sure this doesn't happen. The lock is released only after the VM is started or fails to start. Signed-off-by: Michael Goldish <mgoldish@redhat.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3245 592f7852-d20e-0410-864c-8624ca9c26a4