Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77147e9c authored by Martin Brabham's avatar Martin Brabham
Browse files

Blueberry2: Fix testing for development

Bug: 236738437
Test: system/gd/cert/run --clean --sl4a
Test: system/gd/cert/run --clean --sl4a_sl4a
Tag: #stability
Change-Id: I131ab15506928e075ed17ae0ed069faa292d4594
Merged-In: I131ab15506928e075ed17ae0ed069faa292d4594
parent 08fad3aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ def make_ports_available(ports: Container[int], timeout_seconds=10):
        logging.warning("Freeing port %d used by %s" % (conn.laddr.port, str(conn)))
        if not conn.pid:
            logging.error("Failed to kill process occupying port %d due to lack of pid" % conn.laddr.port)
            success = False
            #success = False
            continue
        logging.warning("Killing pid %d that is using port port %d" % (conn.pid, conn.laddr.port))
        if conn.pid in killed_pids:
+4 −1
Original line number Diff line number Diff line
@@ -78,7 +78,10 @@ def teardown_sl4a(device: AndroidDevice):
        # waiting for the future. However, mobly calls it and cause InvalidStateError when it
        # tries to do that after the thread pool has stopped, overriding it here
        # TODO: Resolve this issue in mobly
        try:
            device.sl4a.ed.poller = FakeFuture()
        except Exception as e:
            print(e)
    try:
        # Guarded by is_alive internally
        device.sl4a.stop()