From dd6b643ceb930d74965e2ad99a41325daf0ec051 Mon Sep 17 00:00:00 2001 From: Ian Southam Date: Mon, 11 Aug 2014 15:23:47 +0200 Subject: [PATCH] Do not use eth0 or eth1 for random tests One or other will be the control interface of the box --- systemvm/patches/debian/config/opt/cloud/bin/update_config.py | 0 test/systemvm/test_update_config.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 systemvm/patches/debian/config/opt/cloud/bin/update_config.py diff --git a/systemvm/patches/debian/config/opt/cloud/bin/update_config.py b/systemvm/patches/debian/config/opt/cloud/bin/update_config.py old mode 100644 new mode 100755 diff --git a/test/systemvm/test_update_config.py b/test/systemvm/test_update_config.py index f847c05379b..110f166eff6 100644 --- a/test/systemvm/test_update_config.py +++ b/test/systemvm/test_update_config.py @@ -101,7 +101,7 @@ class UpdateConfigTestCase(SystemVMTestCase): ip_address["add"] = r.choice((True, False)) ip_address["one_to_one_nat"] = r.choice((True, False)) ip_address["first_i_p"] = r.choice((True, False)) - ip_address["nic_dev_id"] = r.choice((0, 1, 2)) + ip_address["nic_dev_id"] = r.choice((2, 3)) if ip_address["nic_dev_id"] > 0: ip_address["new_nic"] = True else: