aboutsummaryrefslogtreecommitdiff
path: root/verif/runner/tosa_test_runner.py
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-09-27 16:10:59 +0100
committerEric Kunze <eric.kunze@arm.com>2023-09-28 18:27:41 +0000
commitf0348ea4206a7e02497515ffb6d88546e0121cc7 (patch)
tree35a003fdff5208864b6b85dff005ce0127ff649a /verif/runner/tosa_test_runner.py
parentf9c0ceea99e197ab14f779eb51c5e1479dbeb4dd (diff)
downloadreference_model-f0348ea4206a7e02497515ffb6d88546e0121cc7.tar.gz
Refactor path arguments to tosa-tools
tosa_verif_conformance_generator - Move to using ref-model-path instead of ref-model-dir - Add schema-path and flatc-path - Add model_files module to locate default places for files convert2conformance - Remove default paths verifier - Switch to using exact path of verifier library tosa_verif_run_tests - Use conformance model_files to locate defaults Change-Id: Ieca3b164670e2a7dcb047743667cc4e8317daa97 Signed-off-by: Josef Malmström <josef.malmstrom@arm.com> Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Diffstat (limited to 'verif/runner/tosa_test_runner.py')
-rw-r--r--verif/runner/tosa_test_runner.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/verif/runner/tosa_test_runner.py b/verif/runner/tosa_test_runner.py
index d8c2a87..579dd60 100644
--- a/verif/runner/tosa_test_runner.py
+++ b/verif/runner/tosa_test_runner.py
@@ -1,9 +1,8 @@
"""Template test runner class for running TOSA tests."""
-# Copyright (c) 2020-2022, ARM Limited.
+# Copyright (c) 2020-2023, ARM Limited.
# SPDX-License-Identifier: Apache-2.0
import json
from enum import IntEnum
-from pathlib import Path
from checker.tosa_result_checker import LogColors
from checker.tosa_result_checker import print_color
@@ -62,8 +61,8 @@ class TosaTestRunner:
if args.binary and tosaFilePath.suffix == ".json":
# Convert tosa JSON to binary
json2fbbin.json_to_fbbin(
- Path(args.flatc_path),
- Path(args.operator_fbs),
+ args.flatc_path,
+ args.schema_path,
tosaFilePath,
testDirPath,
)