Skip to content

Commit

Permalink
tests:wifi: use dhcpcd istead of deprecated ISC dhclient
Browse files Browse the repository at this point in the history
  • Loading branch information
slyon committed Feb 5, 2025
1 parent 53636f1 commit 0b5783e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/wifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ def test_wifi_ap_open(self):
# connect the other end
subprocess.check_call(['ip', 'link', 'set', self.dev_w_ap, 'up'])
subprocess.check_call(['iw', 'dev', self.dev_w_ap, 'connect', 'fake net'])
out = subprocess.check_output(['dhclient', '-1', '-v', self.dev_w_ap],
out = subprocess.check_output(['dhcpcd', '-w', '-d', self.dev_w_ap],
stderr=subprocess.STDOUT, text=True)
self.assertIn('DHCPACK', out)
self.assertIn('acknowledged 10.', out)
out = subprocess.check_output(['iw', 'dev', self.dev_w_ap, 'info'],
text=True)
self.assertIn('type managed', out)
Expand Down

0 comments on commit 0b5783e

Please sign in to comment.