public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH 3/4] auto-t: iwd.py: use args[0] for station debug interface
Date: Mon, 22 Nov 2021 12:44:24 -0800	[thread overview]
Message-ID: <20211122204425.3567479-3-prestwoj@gmail.com> (raw)
In-Reply-To: 20211122204425.3567479-1-prestwoj@gmail.com

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

Passing *args, **kwargs into StationDebug ended up initializing the
class with Station properties since devices can be initialized from
existing property dictionaries. Since the object path is all
StationDebug needs, pass args[0] instead.
---
 autotests/util/iwd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index 5e1e2721..185a31fe 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -287,7 +287,7 @@ class Device(IWDDBusAbstract):
 
         IWDDBusAbstract.__init__(self, *args, **kwargs)
 
-        self._station_debug = StationDebug(*args, **kwargs)
+        self._station_debug = StationDebug(args[0])
 
     @property
     def _wps_manager(self):
-- 
2.31.1

                 reply	other threads:[~2021-11-22 20:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211122204425.3567479-3-prestwoj@gmail.com \
    --to=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox