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

Commit ed4c8f34 authored by Zhuoyao Zhang's avatar Zhuoyao Zhang
Browse files

Fix run_tool_with_logging_test in CI

Export the TMPDIR env variable so that the tool_event_logger writes log files under the test TMPDIR.

Test: ABTD
Bug: 346391441
Bug: 346391241
Change-Id: Ib1e4b57fe355da6f4e0611446e70dc3bf29f4fa1
parent 92b54c49
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ class RunToolWithLoggingTest(unittest.TestCase):
    logger_path = self._import_executable("tool_event_logger")

    self._run_script_and_wait(f"""
      TMPDIR="{self.working_dir.name}"
      export TMPDIR="{self.working_dir.name}"
      export ANDROID_TOOL_LOGGER="{logger_path}"
      export ANDROID_TOOL_LOGGER_EXTRA_ARGS="--dry_run"
      {self.logging_script_path} "FAKE_TOOL" {test_tool.executable} arg1 arg2
@@ -206,7 +206,7 @@ class RunToolWithLoggingTest(unittest.TestCase):
    logger_path = self._import_executable("tool_event_logger")

    self._run_script_and_wait(f"""
      TMPDIR="{self.working_dir.name}"
      export TMPDIR="{self.working_dir.name}"
      export ANDROID_TOOL_LOGGER="{logger_path}"
      export ANDROID_TOOL_LOGGER_EXTRA_ARGS="--dry_run"
      {self.logging_script_path} "FAKE_TOOL" {test_tool.executable} --tool-arg1