From 34f57f37053690b474072983d4760c99341c78f0 Mon Sep 17 00:00:00 2001 From: C Freeman Date: Fri, 8 Apr 2022 14:03:42 -0400 Subject: [PATCH] Check error code on TestMultiFabric (#17131) * Check error code on TestMultiFabric * Restyled by autopep8 Co-authored-by: Restyled.io --- .../python/test/test_scripts/mobile-device-test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 532cdea13e70a2..453cff178b8a98 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, - setuppin=20202021, - nodeid=1)) + 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