diff mbox

[Autotest,KVM-AUTOTEST] fix tap interface for parallel execution

Message ID 1268239533-20378-2-git-send-email-anantyog@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

yogi March 10, 2010, 4:45 p.m. UTC
None
diff mbox

Patch

different "address_index"

Signed-off-by: Yogananth Subramanian <anantyog@linux.vnet.ibm.com>
---
 client/tests/kvm/kvm_scheduler.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/kvm_scheduler.py b/client/tests/kvm/kvm_scheduler.py
index 93b7df6..9000391 100644
--- a/client/tests/kvm/kvm_scheduler.py
+++ b/client/tests/kvm/kvm_scheduler.py
@@ -33,7 +33,8 @@  class scheduler:
         # "Personal" worker dicts contain modifications that are applied
         # specifically to each worker.  For example, each worker must use a
         # different environment file and a different MAC address pool.
-        self.worker_dicts = [{"env": "env%d" % i} for i in range(num_workers)]
+        self.worker_dicts = [{"env": "env%d" % i, "address_index": i-1} 
+                             for i in range(num_workers)]
 
 
     def worker(self, index, run_test_func):