Skip to content

Commit

Permalink
Fixed file output path for python test execution (#81)
Browse files Browse the repository at this point in the history
* Fixed file output path for python test execution

* Fix code formating

* Fix typo
  • Loading branch information
rquidute authored Mar 14, 2024
1 parent b5fd6c6 commit 3f9a773
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,11 @@ async def cleanup(self) -> None:
def handle_logs_temp(self) -> None:
# This is a temporary workaround since Python Test are generating a
# big amount of log
with open(
"/app/backend/test_collections/matter/sdk_tests/sdk_checkout/"
"python_testing/test_output.txt"
) as f:
sdk_tests_path = Path(Path(__file__).parents[3])
file_output_path = (
sdk_tests_path / "sdk_checkout/python_testing/test_output.txt"
)
with open(file_output_path) as f:
lines = f.read()
logger.log(PYTHON_TEST_LEVEL, lines)

Expand Down

0 comments on commit 3f9a773

Please sign in to comment.