public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] controllers/cpuset: Add backslash to dump full fail log
@ 2024-11-20  0:59 Zhao Mengmeng
  2024-12-17 21:48 ` Petr Vorel
  0 siblings, 1 reply; 4+ messages in thread
From: Zhao Mengmeng @ 2024-11-20  0:59 UTC (permalink / raw)
  To: ltp

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. Add backslash to fix
it.

Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
---
 testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
index 567178e3fd52..a374fd71f790 100755
--- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
+++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
@@ -195,7 +195,7 @@ cleanup()
 		done < "$subdir/tasks"
 		rmdir "$subdir"
 		if [ $? -ne 0 ]; then
-			tst_brkm TFAIL "Couldn't remove subdir - "
+			tst_brkm TFAIL "Couldn't remove subdir - "\
 						"$subdir in the cpuset"
 		fi
 	done
-- 
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [LTP] [PATCH] controllers/cpuset: Add backslash to dump full fail log
  2024-11-20  0:59 [LTP] [PATCH] controllers/cpuset: Add backslash to dump full fail log Zhao Mengmeng
@ 2024-12-17 21:48 ` Petr Vorel
  2025-04-29  7:55   ` Andrea Cervesato via ltp
  0 siblings, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2024-12-17 21:48 UTC (permalink / raw)
  To: Zhao Mengmeng; +Cc: ltp

Hi Zhao Mengmeng,

> While debugging LTP cpuset_load_balance_test, when rmdir a path failed,
> it only dumps part of the log, missing the $subdir. Add backslash to fix
> it.

+1 good catch.

Reviewed-by: Petr Vorel <pvorel@suse.cz>

> Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
> ---
>  testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

> diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> index 567178e3fd52..a374fd71f790 100755
> --- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> +++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> @@ -195,7 +195,7 @@ cleanup()
>  		done < "$subdir/tasks"
>  		rmdir "$subdir"
>  		if [ $? -ne 0 ]; then
> -			tst_brkm TFAIL "Couldn't remove subdir - "
> +			tst_brkm TFAIL "Couldn't remove subdir - "\
>  						"$subdir in the cpuset"

Could we please just join the string?
			tst_brkm TFAIL "Couldn't remove subdir - $subdir in the cpuset"

Kind regards,
Petr

>  		fi
>  	done

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP] [PATCH] controllers/cpuset: Add backslash to dump full fail log
  2024-12-17 21:48 ` Petr Vorel
@ 2025-04-29  7:55   ` Andrea Cervesato via ltp
  2025-05-06  1:03     ` Zhao Mengmeng
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Cervesato via ltp @ 2025-04-29  7:55 UTC (permalink / raw)
  To: Petr Vorel, Zhao Mengmeng; +Cc: ltp

Hi!

I'm gonna merge this, removing backlash and joining the strings.

Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>

On 12/17/24 22:48, Petr Vorel wrote:
> Hi Zhao Mengmeng,
>
>> While debugging LTP cpuset_load_balance_test, when rmdir a path failed,
>> it only dumps part of the log, missing the $subdir. Add backslash to fix
>> it.
> +1 good catch.
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
>> Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
>> ---
>>   testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>> diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>> index 567178e3fd52..a374fd71f790 100755
>> --- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>> +++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>> @@ -195,7 +195,7 @@ cleanup()
>>   		done < "$subdir/tasks"
>>   		rmdir "$subdir"
>>   		if [ $? -ne 0 ]; then
>> -			tst_brkm TFAIL "Couldn't remove subdir - "
>> +			tst_brkm TFAIL "Couldn't remove subdir - "\
>>   						"$subdir in the cpuset"
> Could we please just join the string?
> 			tst_brkm TFAIL "Couldn't remove subdir - $subdir in the cpuset"
>
> Kind regards,
> Petr
>
>>   		fi
>>   	done

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP] [PATCH] controllers/cpuset: Add backslash to dump full fail log
  2025-04-29  7:55   ` Andrea Cervesato via ltp
@ 2025-05-06  1:03     ` Zhao Mengmeng
  0 siblings, 0 replies; 4+ messages in thread
From: Zhao Mengmeng @ 2025-05-06  1:03 UTC (permalink / raw)
  To: Andrea Cervesato, Petr Vorel; +Cc: ltp

On 2025/4/29 15:55, Andrea Cervesato wrote:
> Hi!
> 
> I'm gonna merge this, removing backlash and joining the strings.
> 
> Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>
> 
> On 12/17/24 22:48, Petr Vorel wrote:
>> Hi Zhao Mengmeng,
>>
>>> While debugging LTP cpuset_load_balance_test, when rmdir a path failed,
>>> it only dumps part of the log, missing the $subdir. Add backslash to fix
>>> it.
>> +1 good catch.
>>
>> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>>
>>> Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
>>> ---
>>>   testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>> diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>>> index 567178e3fd52..a374fd71f790 100755
>>> --- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>>> +++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
>>> @@ -195,7 +195,7 @@ cleanup()
>>>           done < "$subdir/tasks"
>>>           rmdir "$subdir"
>>>           if [ $? -ne 0 ]; then
>>> -            tst_brkm TFAIL "Couldn't remove subdir - "
>>> +            tst_brkm TFAIL "Couldn't remove subdir - "\
>>>                           "$subdir in the cpuset"
>> Could we please just join the string?
>>             tst_brkm TFAIL "Couldn't remove subdir - $subdir in the cpuset"
>>
>> Kind regards,
>> Petr
>>
>>>           fi
>>>       done

Thanks, Andrea. Actually I have already sent a v2 patch removing backlash and joining the strings
to LTP at 2024/12/18, but got no reply on it.


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-07 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-20  0:59 [LTP] [PATCH] controllers/cpuset: Add backslash to dump full fail log Zhao Mengmeng
2024-12-17 21:48 ` Petr Vorel
2025-04-29  7:55   ` Andrea Cervesato via ltp
2025-05-06  1:03     ` Zhao Mengmeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox