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

Commit 3de766a7 authored by Jack He's avatar Jack He
Browse files

Cert: Save profraw file to their respective log directory

* Currently, each takes about 6MB and we are outputing 2 per test class
* Total about 128MB increase in log size per test run

Test: gd/cert/run --host
Bug: 153384476
Change-Id: I174773f31eabd4da875926cc2ecca07931d6b94a
parent 838422b3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -111,10 +111,16 @@ class GdDeviceBase:
        tester_signal_socket.bind(socket_address)
        tester_signal_socket.listen(1)

        environment = os.environ.copy()
        # Enable LLVM code coverage output for host only tests
        if not self.serial_number:
            environment["LLVM_PROFILE_FILE"] = os.path.join(
                self.log_path_base,
                "%s_%s_backing_coverage.profraw" % (type_identifier, label))
        self.backing_process = subprocess.Popen(
            cmd,
            cwd=get_gd_root(),
            env=os.environ.copy(),
            env=environment,
            stdout=self.backing_process_logs,
            stderr=self.backing_process_logs)
        asserts.assert_true(