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

Commit 4d170558 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

Change-Id: Ieb4ff72f7e383c67fdc31e331fc46a691e7f5cca
parents 4ef461ab bd5c4668
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']