From e44fcf5a1c715c0ee35d119dc35a476411c7567d Mon Sep 17 00:00:00 2001 From: Cecille Freeman Date: Wed, 6 Apr 2022 13:41:25 -0400 Subject: [PATCH 1/2] Check error code on TestMultiFabric --- src/controller/python/test/test_scripts/mobile-device-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller/python/test/test_scripts/mobile-device-test.py b/src/controller/python/test/test_scripts/mobile-device-test.py index 532cdea13e70a2..d2d45f85fb6b88 100755 --- a/src/controller/python/test/test_scripts/mobile-device-test.py +++ b/src/controller/python/test/test_scripts/mobile-device-test.py @@ -76,9 +76,10 @@ def ethernet_commissioning(test: BaseTestHelper, discriminator: int, setup_pin: nodeid=device_nodeid), "Failed to finish key exchange") - asyncio.run(test.TestMultiFabric(ip=address, + ok = asyncio.run(test.TestMultiFabric(ip=address, setuppin=20202021, nodeid=1)) + FailIfNot(ok, "Failed to commission multi-fabric") # # The server will crash if we are aborting / closing it too fast. # Issue: #15987 From 45f5361161c4da710219371c8ba875364b20c5fd Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 6 Apr 2022 17:45:10 +0000 Subject: [PATCH 2/2] Restyled by autopep8 --- src/controller/python/test/test_scripts/mobile-device-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/python/test/test_scripts/mobile-device-test.py b/src/controller/python/test/test_scripts/mobile-device-test.py index d2d45f85fb6b88..453cff178b8a98 100755 --- a/src/controller/python/test/test_scripts/mobile-device-test.py +++ b/src/controller/python/test/test_scripts/mobile-device-test.py @@ -77,8 +77,8 @@ def ethernet_commissioning(test: BaseTestHelper, discriminator: int, setup_pin: "Failed to finish key exchange") ok = asyncio.run(test.TestMultiFabric(ip=address, - setuppin=20202021, - nodeid=1)) + setuppin=20202021, + nodeid=1)) FailIfNot(ok, "Failed to commission multi-fabric") # # The server will crash if we are aborting / closing it too fast.