mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
auto-t: fix testNetconfig hardcoded interface
If running multiple tests testNetconfig would fail due to the hardcoded wln0 in the dhcpd.conf file. dhcpd can actually start by passing in the interface to the run command rather than inside the config file.
This commit is contained in:
parent
acb31477c1
commit
16698d0c9a
@ -62,7 +62,8 @@ class Test(unittest.TestCase):
|
|||||||
ctx.start_process(['ifconfig', hapd.ifname, '192.168.1.1', 'netmask', '255.255.255.0'],
|
ctx.start_process(['ifconfig', hapd.ifname, '192.168.1.1', 'netmask', '255.255.255.0'],
|
||||||
wait=True)
|
wait=True)
|
||||||
ctx.start_process(['touch', '/tmp/dhcpd.leases'], wait=True)
|
ctx.start_process(['touch', '/tmp/dhcpd.leases'], wait=True)
|
||||||
ctx.start_process(['dhcpd', '-cf', '/tmp/dhcpd.conf', '-lf', '/tmp/dhcpd.leases'])
|
ctx.start_process(['dhcpd', '-cf', '/tmp/dhcpd.conf', '-lf', '/tmp/dhcpd.leases',
|
||||||
|
hapd.ifname])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
@ -10,7 +10,6 @@ subnet 192.168.1.0 netmask 255.255.255.0
|
|||||||
option routers 192.168.1.1;
|
option routers 192.168.1.1;
|
||||||
option subnet-mask 255.255.255.0;
|
option subnet-mask 255.255.255.0;
|
||||||
option domain-name-servers 192.168.1.1;
|
option domain-name-servers 192.168.1.1;
|
||||||
interface wln0;
|
|
||||||
range 192.168.1.10 192.168.1.20;
|
range 192.168.1.10 192.168.1.20;
|
||||||
range 192.168.1.100 192.168.1.200;
|
range 192.168.1.100 192.168.1.200;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user