[LTP] [PATCH v2 1/4] cgroup_regression_test.sh ported to newlib
Cristian Marussi
cristian.marussi@arm.com
Fri Dec 21 19:23:07 CET 2018
Hi
On 21/12/2018 15:20, Cristian Marussi wrote:
> Hi
>
> On 21/12/2018 14:25, Petr Vorel wrote:
>> Hi Cristian,
>>
>> ...
>>> --- a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
>>> {
>>> grep -q -w "ns" /proc/cgroups
>>> if [ $? -ne 0 ]; then
>>> - tst_resm TCONF "CONFIG_CGROUP_NS"
>>> + tst_res TCONF "CONFIG_CGROUP_NS"
>>> return
>>> fi
>>
>> This could be just
>>
>> grep -q -w "ns" /proc/cgroups || tst_res TCONF "CONFIG_CGROUP_NS is not enabled"
>>
>> But CONFIG_CGROUP_NS was removed in a77aea92010a ("cgroup: remove the ns_cgroup")
>> in v3.0. We don't have TST_MAX_KVER, so we cannot use TST_MAX_KVER="3.0", but
>> maybe compare kernel version with tst_kvcmp (see doc) and adjust warning for new kernels.
>
> Fine I'll do. In fact I could see it working properly only when testing on QEMU
> 2.6.39.
Done with test_kvcmp BUT regarding the grep --q ... || tst_res, it turns out it
needs anyway a return afterwards to end the testcase function ...so I've left
the if block (even if I could have appended the return after the || tst_res)
Regards
Cristian
>
> Regards
>
> Cristian
>>
>> Kind regards,
>> Petr
>>
>
>
More information about the ltp
mailing list