libwd/0017-uadk-fix-hpre-test.patch
2023-09-28 09:15:32 +08:00

33 lines
926 B
Diff

From c910149f83b888b78984ca58c5bb82fd5ec64b96 Mon Sep 17 00:00:00 2001
From: Wenkai Lin <linwenkai6@hisilicon.com>
Date: Fri, 18 Aug 2023 11:12:59 +0800
Subject: [PATCH 17/26] uadk: fix hpre test
Hpre test should use dynamic dev path.
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
---
test/sanity_test.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/sanity_test.sh b/test/sanity_test.sh
index 81135e3..2fac5ee 100755
--- a/test/sanity_test.sh
+++ b/test/sanity_test.sh
@@ -390,9 +390,10 @@ run_sec_test_v2()
# failed: return 1; success: return 0
run_hpre_test_v2()
{
- run_cmd test_hisi_hpre --trd_mode=sync
+ dev_path=$(ls -1 /dev/hisi_hpre-* | head -1)
+ run_cmd test_hisi_hpre --trd_mode=sync --dev_path=$dev_path
- run_cmd test_hisi_hpre --trd_mode=async
+ run_cmd test_hisi_hpre --trd_mode=async --dev_path=$dev_path
}
# failed: return 1; success: return 0
--
2.25.1