Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
make test: fix broken interfaces
[vpp.git]
/
test
/
framework.py
diff --git
a/test/framework.py
b/test/framework.py
index
be8c209
..
dd4774d
100644
(file)
--- a/
test/framework.py
+++ b/
test/framework.py
@@
-558,18
+558,16
@@
class VppTestCase(unittest.TestCase):
return result
@classmethod
return result
@classmethod
- def create_loopback_interfaces(cls,
interfaces
):
+ def create_loopback_interfaces(cls,
count
):
"""
Create loopback interfaces.
"""
Create loopback interfaces.
- :param
interfaces: iterable indexes of the interfaces
.
+ :param
count: number of interfaces created
.
:returns: List of created interfaces.
"""
:returns: List of created interfaces.
"""
- result = []
- for i in interfaces:
- intf = VppLoInterface(cls, i)
+ result = [VppLoInterface(cls) for i in range(count)]
+ for intf in result:
setattr(cls, intf.name, intf)
setattr(cls, intf.name, intf)
- result.append(intf)
cls.lo_interfaces = result
return result
cls.lo_interfaces = result
return result