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

Commit 8584bcbf authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Cert: Write root-canal log to test class specific log path am: bd5c4668 am: 4d170558

Change-Id: Iee4b0c27e8cc1e77aaa257516ab03e053ad68df7
parents f7218cdf 4d170558
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import signal
import subprocess

from acts import asserts
from acts import context
from acts.base_test import BaseTestClass
from cert.os_utils import get_gd_root, is_subprocess_alive
from facade import rootservice_pb2 as facade_rootservice
@@ -34,10 +35,13 @@ class GdBaseTestClass(BaseTestClass):

        gd_devices = self.controller_configs.get("GdDevice")

        self.log_path_base = context.get_current_context().get_full_output_path(
        )

        self.rootcanal_running = False
        if 'rootcanal' in self.controller_configs:
            self.rootcanal_running = True
            rootcanal_logpath = os.path.join(self.log_path,
            rootcanal_logpath = os.path.join(self.log_path_base,
                                             'rootcanal_logs.txt')
            self.rootcanal_logs = open(rootcanal_logpath, 'w')
            rootcanal_config = self.controller_configs['rootcanal']