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

Commit 711a3730 authored by Myles Watson's avatar Myles Watson
Browse files

Cert: Check that child returns 0 or -signal

Bug: 147444951
Test: ./cert/run_device_cert.sh
Change-Id: I1628a039a90b6a389509afa28e59d1f23c622531
parent 306218ea
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -98,10 +98,11 @@ class GdDeviceBase:
    def clean_up(self):
        self.grpc_channel.close()
        self.grpc_root_server_channel.close()
        self.backing_process.send_signal(signal.SIGINT)
        stop_signal = signal.SIGINT
        self.backing_process.send_signal(stop_signal)
        backing_process_return_code = self.backing_process.wait()
        self.backing_process_logs.close()
        if backing_process_return_code != 0:
        if backing_process_return_code not in [-stop_signal, 0]:
            logging.error("backing process %s stopped with code: %d" %
                          (self.label, backing_process_return_code))
            return False