-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#292: Added option to dump test results to a custom file and enable C…
…I workflow to summarize ttrt run and perf test results as well as ttrt api test results (#816)
- Loading branch information
Showing
14 changed files
with
455 additions
and
626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SPDX-FileCopyrightText: (c) 2024 Tenstorrent AI ULC | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import os | ||
import pytest | ||
|
||
from util import * | ||
|
||
|
||
@pytest.fixture(scope="session", autouse=True) | ||
def session_setup(): | ||
directory_name = "ttrt-results" | ||
if not os.path.exists(directory_name): | ||
try: | ||
os.mkdir(directory_name) | ||
except Exception as e: | ||
print(f"An error occurred while creating the directory: {e}") | ||
|
||
yield | ||
|
||
|
||
def pytest_runtest_teardown(item, nextitem): | ||
assert ( | ||
check_results(f"ttrt-results/{item.name}.json") == 0 | ||
), f"one of more tests failed in={item.name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.