aboutsummaryrefslogtreecommitdiff
path: root/verif/runner/tosa_verif_run_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'verif/runner/tosa_verif_run_tests.py')
-rw-r--r--verif/runner/tosa_verif_run_tests.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/verif/runner/tosa_verif_run_tests.py b/verif/runner/tosa_verif_run_tests.py
index b400d76..77394cc 100644
--- a/verif/runner/tosa_verif_run_tests.py
+++ b/verif/runner/tosa_verif_run_tests.py
@@ -117,7 +117,7 @@ def parseArgs(argv):
type=str,
default="both",
choices=["positive", "negative", "both"],
- help="Filter tests based on expected failure status (positive, negative or both)",
+ help="Filter tests based on expected failure status",
)
parser.add_argument(
"--no-color",
@@ -126,6 +126,13 @@ def parseArgs(argv):
action="store_true",
help="Disable color output",
)
+ parser.add_argument(
+ "--profile",
+ dest="profile",
+ type=str,
+ choices=["tosa-bi", "tosa-mi"],
+ help="Filter tests based on profile",
+ )
args = parser.parse_args(argv)
@@ -171,8 +178,9 @@ def workerThread(task_queue, runnerList, args, result_queue):
runnerName = runnerModule.__name__
runner = runnerModule.TosaSUTRunner(args, runnerArgs, test)
- if runner.skipTest():
- msg = "Skipping non-{} test".format(args.test_type)
+ skip, reason = runner.skipTest()
+ if skip:
+ msg = "Skipping {} test".format(reason)
print("{} {}".format(msg, test))
rc = TosaTestRunner.Result.SKIPPED
else: