From e0247481eb1f83f6eb7161d3f7ac2690b180952a Mon Sep 17 00:00:00 2001 From: TatWai Chong Date: Thu, 1 Jun 2023 15:02:24 -0700 Subject: Remove `"` from the search pattern `"tosa.*"` The double quotation mark is not always appear in the assembly output of operations. Remove it to easier capture general printing pattern. Change-Id: I59301daa07abd905de7259f8ae527a74b1ce5a6c Signed-off-by: TatWai Chong --- thirdparty/serialization_lib | 2 +- verif/frameworks/tosa_verif_framework_compiler_runner.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/thirdparty/serialization_lib b/thirdparty/serialization_lib index e2b20e4..5f92021 160000 --- a/thirdparty/serialization_lib +++ b/thirdparty/serialization_lib @@ -1 +1 @@ -Subproject commit e2b20e4eb9e91d9fd4a155880f3bf6085b8ffaac +Subproject commit 5f920211ac23393a7b98a0d358bfbfc3232d5c8f diff --git a/verif/frameworks/tosa_verif_framework_compiler_runner.py b/verif/frameworks/tosa_verif_framework_compiler_runner.py index 848b1b4..972ea0a 100755 --- a/verif/frameworks/tosa_verif_framework_compiler_runner.py +++ b/verif/frameworks/tosa_verif_framework_compiler_runner.py @@ -510,7 +510,8 @@ def run_test(args, test_path, framework): empty_graph = True with open(tosa_mlir_filename, "r") as f: for line in f: - if re.search('"tosa.*"', line): + # TOSA assembly instructions all start with `tosa.` + if re.search(r"tosa\.", line): empty_graph = False break -- cgit v1.2.1