Skip to contentSkip to conversation

test-runner: Drop unused parameter

PATCH In review Andrew Zaborowski 2 participants 4 messages Aug 7, 2021 – Aug 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test-runner: Drop unused parameter

---
 tools/test-runner | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/test-runner +1 -1
index 75e46444..f5ab7c58 100755
@@ -164,7 +164,7 @@ class Process:
 		case.
 	'''
 	def __init__(self, args, wait=False, env=None, ctx=None, check=False,
-				outfile=None, namespace=None, need_out=False, cleanup=None):
+				outfile=None, namespace=None, cleanup=None):
 		self.killed = False
 		self.args = args
 		self.wait = wait
Signature · 1 line
2.30.2
#1 lore raw

Hi Andrew,

Quoted 9 lines · Andrew Zaborowski

---
 tools/test-runner | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
tools/test-runner +0 -0
index 75e46444..f5ab7c58 100755
@@ -164,7 +164,7 @@ class Process:
Quoted 8 lines

                case.
        '''
        def __init__(self, args, wait=False, env=None, ctx=None, check=False,
-                               outfile=None, namespace=None, need_out=False, cleanup=None):
+                               outfile=None, namespace=None, cleanup=None):

This is fine, but we also need to remove the use in hostapd.py for list_sta/send_bss_transition.

Quoted 3 lines

                self.killed = False
                self.args = args
                self.wait = wait

Thanks,
James

#2 lore raw
Quoted 15 lines · James Prestwood
Quoted 11 lines · Andrew Zaborowski
tools/test-runner +0 -1
@@ -164,7 +164,7 @@ class Process:
                case.
        '''
        def __init__(self, args, wait=False, env=None, ctx=None,
 check=False,
-                               outfile=None, namespace=None,

need_out=False, cleanup=None):
+ outfile=None, namespace=None,
cleanup=None):

This is fine, but we also need to remove the use in hostapd.py for list_sta/send_bss_transition.

Good point, looks like some tests will fail without that. I'm also fine dropping this patch.

Best regards

#3 lore raw
Quoted 18 lines · Andrew Zaborowski
Quoted 15 lines · James Prestwood
Quoted 11 lines · Andrew Zaborowski
tools/test-runner +0 -0
@@ -164,7 +164,7 @@ class Process:

                case.
        '''
        def __init__(self, args, wait=False, env=None, ctx=None, check=False,
-                               outfile=None, namespace=None, need_out=False, cleanup=None):
+                               outfile=None, namespace=None, cleanup=None):

This is fine, but we also need to remove the use in hostapd.py for list_sta/send_bss_transition.

Quoted 2 lines

Good point, looks like some tests will fail without that.  I'm also fine dropping this patch.

I think we should still remove it since Process.out is always populated now. But another consideration is that I am touching just about every autotest in existence as well as utility files so I can just tack this onto my current patch set to avoid any rebase pain.

Thanks,
James

Quoted 2 lines

Best regards