# HG changeset patch # User stekloff@xxxxxxxxxxxxxxxxxxxxxxxxxx # Node ID 6362b279156c819dc06be88cac33b67c79fdfa91 # Parent f527a18cc8c341b2eb836d65b957b225bcfc8f27 Fix xmtest 13_create_multinic_pos.py to work with HVM. Signed-off-by: Daniel Stekloff diff -r f527a18cc8c3 -r 6362b279156c tools/xm-test/tests/create/13_create_multinic_pos.py --- a/tools/xm-test/tests/create/13_create_multinic_pos.py Wed Mar 8 17:41:12 2006 +++ b/tools/xm-test/tests/create/13_create_multinic_pos.py Wed Mar 8 21:54:35 2006 @@ -5,8 +5,16 @@ from XmTestLib import * -for i in range(0,10): - config = {"vif": ['' for _ in range(0, i)]} +# The current device model, qemu-dm, only supports 8 MAX_NICS currently. +if ENABLE_HVM_SUPPORT: + MAX_NICS = 8 + nic = "type=ioemu, bridge=xenbr0" +else: + MAX_NICS = 10 + nic = '' + +for i in range(0,MAX_NICS): + config = {"vif": [ nic ] * i} domain = XmTestDomain(extraConfig=config) try: