Skip to contentSkip to conversation

auto-t: fix testP2P

PATCH In review Torsten Schmitz 2 participants 4 messages Nov 9, 2021

lore
Share & tools
lore

Torsten Schmitz

author
#0 lore raw

PATCH 1/1 auto-t: fix testP2P

testP2P was failing with
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/wpa_supplicant.conf'

---
 tools/test-runner | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/test-runner +0 -0
index 9ae33301..5fc4285d 100755
@@ -955,7 +955,7 @@ class TestContext(Namespace):
 
                else:
                        wpas_radios = [rad for rad in self.radios if

rad.name in settings]
- self.wpas_interfaces =
[rad.create_interface('wpa_supplicant.conf', 'wpas') \
+ self.wpas_interfaces =
[rad.create_interface(settings[rad.name], 'wpas') \
for rad in wpas_radios]

def start_ofono(self):
--
2.33.1

#1 lore raw

Hi Torsten,

Quoted 7 lines · Torsten Schmitz

testP2P was failing with
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/wpa_supplicant.conf'

---
  tools/test-runner | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

This fails to apply:

denkenz(a)localhost ~/iwd-master $ git am ~/merge/\[PATCH\]\ auto-t\:\ fix\
testP2P.eml
Applying: auto-t: fix testP2P
error: corrupt patch at line 13
Patch failed at 0001 auto-t: fix testP2P

Regards,
-Denis

author
#2 lore raw

PATCH 1/1 auto-t: fix testP2P

testP2P was failing with
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/wpa_supplicant.conf'

---
 tools/test-runner | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/test-runner +1 -1
index 9ae33301..5fc4285d 100755
@@ -955,7 +955,7 @@ class TestContext(Namespace):
 
 		else:
 			wpas_radios = [rad for rad in self.radios if rad.name in settings]
-			self.wpas_interfaces = [rad.create_interface('wpa_supplicant.conf', 'wpas') \
+			self.wpas_interfaces = [rad.create_interface(settings[rad.name], 'wpas') \
 						for rad in wpas_radios]
 
 	def start_ofono(self):
Signature · 1 line
2.33.1
Applied
#3 lore raw

Hi Torsten,

Quoted 5 lines · Torsten Schmitz

testP2P was failing with
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/wpa_supplicant.conf'

---
  tools/test-runner | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis