From 26f056e994afc7984ffdf01a6c885dfc42963d67 Mon Sep 17 00:00:00 2001 From: propelluo Date: Sun, 17 May 2026 23:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AE=9ALTPROOT=E4=B8=BA=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: propelluo --- lib/ts_common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ts_common.sh b/lib/ts_common.sh index 6470932..4d196b8 100644 --- a/lib/ts_common.sh +++ b/lib/ts_common.sh @@ -110,6 +110,8 @@ ltp_run_testcase() { mkdir -p "$run_dir/tmp" cd "${g_install_dir}" || return 1 + # kirk 默认在 /opt/ltp 找 LTP 安装目录,需要显式指向我们的安装路径 + export LTPROOT="$g_install_dir" # 块设备通过环境变量传给 kirk,libkirk/ltp.py 会自动转发 LTP_/TST_ 前缀变量 export LTP_DEV="$tst_block" export LTP_DEV_FS_TYPE=ext4 -- Gitee