[LTP] [PATCH v2] controllers/cpuset: Join string to dump full fail log

Zhao Mengmeng zhaomzhao@126.com
Tue May 6 03:06:31 CEST 2025


Hi, Andrea, this is the mail I mentioned about the V2 patch.

At 2024-12-18 09:50:32, "Zhao Mengmeng" <zhaomzhao@126.com> wrote:
>From: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
>
>While debugging LTP cpuset_load_balance_test, when rmdir a path failed,
>it only dumps part of the log, missing the $subdir. Join string to fix
>it.
>
>Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
>---
> testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
>diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>index 567178e3fd52..f43518c71668 100755
>--- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>+++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>@@ -195,8 +195,7 @@ cleanup()
> 		done < "$subdir/tasks"
> 		rmdir "$subdir"
> 		if [ $? -ne 0 ]; then
>-			tst_brkm TFAIL "Couldn't remove subdir - "
>-						"$subdir in the cpuset"
>+			tst_brkm TFAIL "Couldn't remove subdir - $subdir in the cpuset"
> 		fi
> 	done
> 
>-- 
>2.43.0


More information about the ltp mailing list