eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 16698d0c9a974a8ab670f4f4910a7baa19b3c75b
parent acb31477c1d575f17c511d5bfbc42b66d706eadf
Author: James Prestwood <prestwoj@gmail.com>
Date:   Tue,  3 Nov 2020 11:06:39 -0800

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.

Diffstat:
Mautotests/testNetconfig/connection_test.py | 3++-
Mautotests/testNetconfig/dhcpd.conf | 1-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/autotests/testNetconfig/connection_test.py b/autotests/testNetconfig/connection_test.py @@ -62,7 +62,8 @@ class Test(unittest.TestCase): ctx.start_process(['ifconfig', hapd.ifname, '192.168.1.1', 'netmask', '255.255.255.0'], 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 def tearDownClass(cls): diff --git a/autotests/testNetconfig/dhcpd.conf b/autotests/testNetconfig/dhcpd.conf @@ -10,7 +10,6 @@ subnet 192.168.1.0 netmask 255.255.255.0 option routers 192.168.1.1; option subnet-mask 255.255.255.0; option domain-name-servers 192.168.1.1; - interface wln0; range 192.168.1.10 192.168.1.20; range 192.168.1.100 192.168.1.200; }