[igt-dev] [RFC, i-g-t] Added dynamic Subtest

Karthik B S karthik.b.s at intel.com
Wed Nov 11 09:42:12 UTC 2020


On 11/6/2020 3:04 PM, Petri Latvala wrote:
> On Fri, Nov 06, 2020 at 02:57:57PM +0530, nidhi1.gupta at intel.com wrote:
>> From: Nidhi Gupta <nidhi1.gupta at intel.com>
>>
>> Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
>> ---
>>   tests/kms_atomic_transition.c | 8 ++++----
>>   1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
>> index a71bbe10..aa2afe02 100644
>> --- a/tests/kms_atomic_transition.c
>> +++ b/tests/kms_atomic_transition.c
>> @@ -1025,16 +1025,16 @@ igt_main
>>   			run_transition_test(&display, pipe, output, TRANSITION_MODESET_DISABLE, false, false);
>>   
>>   	for (i = 1; i <= IGT_MAX_PIPES; i++) {

Since we're now anyway planning to use dynamic subtests for this,

Could we just have a count of the number of outputs connected and use 
this, instead of using IGT_MAX_PIPES to populate the subtests and 
eventually skipping them?

@Petri,

Does this sound good?

Thanks,
Karthik.B.S
>> -		igt_subtest_f("%ix-modeset-transitions", i)
>> +		igt_subtest_with_dynamic_f("%ix-modeset-transitions", i)
>>   			run_modeset_transition(&display, i, false, false);
>>   
>> -		igt_subtest_f("%ix-modeset-transitions-nonblocking", i)
>> +		igt_subtest_with_dynamic_f("%ix-modeset-transitions-nonblocking", i)
>>   			run_modeset_transition(&display, i, true, false);
>>   
>> -		igt_subtest_f("%ix-modeset-transitions-fencing", i)
>> +		igt_subtest_with_dynamic_f("%ix-modeset-transitions-fencing", i)
>>   			run_modeset_transition(&display, i, false, true);
>>   
>> -		igt_subtest_f("%ix-modeset-transitions-nonblocking-fencing", i)
>> +		igt_subtest_with_dynamic_f("%ix-modeset-transitions-nonblocking-fencing", i)
>>   			run_modeset_transition(&display, i, true, true);
> Where are the igt_dynamic() blocks for these?
>
>
> --
> Petri Latvala
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev




More information about the igt-dev mailing list