* [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
@ 2023-06-22 11:16 Jeevan B
2023-06-22 12:18 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_setmode: Fix dynamic subtests (rev2) Patchwork
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Jeevan B @ 2023-06-22 11:16 UTC (permalink / raw)
To: igt-dev
basic-clone-single-crtc and invalid-clone-exclusive-crtc were not
part of dynamic subtest so tests were getting skipped. fixed the
test to execute skipping tests as expected.
v2: add missing call.
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
tests/kms_setmode.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
index a611d938..96fb0b4b 100644
--- a/tests/kms_setmode.c
+++ b/tests/kms_setmode.c
@@ -647,20 +647,19 @@ static void test_one_combination(const struct test_config *tconf,
struct crtc_config crtcs[MAX_CRTCS];
int crtc_count;
bool config_valid;
+ int i, pos = 0;
+ char test_name[256];
setup_crtcs(tconf, cconfs, connector_count, crtcs,
&crtc_count, &config_valid);
- if (config_valid == !(tconf->flags & TEST_INVALID)) {
- int i, pos = 0;
- char test_name[256];
-
- for (i = 0; i < crtc_count; i++) {
- if (i > 0)
- pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
- pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
- }
+ for (i = 0; i < crtc_count; i++) {
+ if (i > 0)
+ pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
+ pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
+ }
+ if (config_valid == !(tconf->flags & TEST_INVALID)) {
for (i = 0; i < crtc_count; i++) {
struct crtc_config *crtc = &crtcs[i];
@@ -679,16 +678,17 @@ static void test_one_combination(const struct test_config *tconf,
((i > 0) && (crtc[i - 1].mode.hdisplay > MAX_HDISPLAY_PER_CRTC) &&
(abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
igt_info("Combo: %s is not possible with selected mode(s).\n", test_name);
- goto out;
+ cleanup_crtcs(crtcs, crtc_count);
+ return;
}
}
igt_dynamic_f("%s", test_name)
test_crtc_config(tconf, crtcs, crtc_count);
+ } else {
+ igt_dynamic_f("%s", test_name)
+ cleanup_crtcs(crtcs, crtc_count);
}
-
-out:
- cleanup_crtcs(crtcs, crtc_count);
}
static int assign_crtc_to_connectors(const struct test_config *tconf,
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_setmode: Fix dynamic subtests (rev2)
2023-06-22 11:16 [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Jeevan B
@ 2023-06-22 12:18 ` Patchwork
2023-06-22 12:55 ` [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Kamil Konieczny
2023-06-23 3:49 ` Modem, Bhanuprakash
2 siblings, 0 replies; 10+ messages in thread
From: Patchwork @ 2023-06-22 12:18 UTC (permalink / raw)
To: Jeevan B; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 7682 bytes --]
== Series Details ==
Series: tests/kms_setmode: Fix dynamic subtests (rev2)
URL : https://patchwork.freedesktop.org/series/119631/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13306 -> IGTPW_9240
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_9240 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_9240, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/index.html
Participating hosts (42 -> 42)
------------------------------
Additional (1): bat-dg1-8
Missing (1): fi-kbl-soraka
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_9240:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_fence@basic-await@ccs2:
- bat-dg2-8: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-dg2-8/igt@gem_exec_fence@basic-await@ccs2.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-dg2-8/igt@gem_exec_fence@basic-await@ccs2.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* {igt@xe_create@create-massive-size}:
- {bat-dg1-8}: NOTRUN -> [FAIL][3] +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-dg1-8/igt@xe_create@create-massive-size.html
New tests
---------
New tests have been introduced between CI_DRM_13306 and IGTPW_9240:
### New IGT tests (4) ###
* igt@kms_setmode@basic-clone-single-crtc@pipe-a-dp-1-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.0] s
* igt@kms_setmode@basic-clone-single-crtc@pipe-a-hdmi-a-2-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.0] s
* igt@kms_setmode@basic-clone-single-crtc@pipe-b-dp-1-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.0] s
* igt@kms_setmode@basic-clone-single-crtc@pipe-b-hdmi-a-2-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in IGTPW_9240 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@load:
- bat-adlp-11: [PASS][4] -> [ABORT][5] ([i915#4423])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-adlp-11/igt@i915_module_load@load.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-adlp-11/igt@i915_module_load@load.html
* igt@i915_selftest@live@requests:
- bat-rpls-2: [PASS][6] -> [ABORT][7] ([i915#4983] / [i915#7913])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-rpls-2/igt@i915_selftest@live@requests.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-rpls-2/igt@i915_selftest@live@requests.html
* igt@i915_selftest@live@workarounds:
- bat-mtlp-6: [PASS][8] -> [DMESG-FAIL][9] ([i915#6763])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-mtlp-6/igt@i915_selftest@live@workarounds.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-mtlp-6/igt@i915_selftest@live@workarounds.html
* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][10] ([i915#1845] / [i915#5354])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-dg2-11/igt@kms_pipe_crc_basic@read-crc-frame-sequence.html
* igt@kms_setmode@basic-clone-single-crtc:
- bat-rplp-1: NOTRUN -> [ABORT][11] ([i915#4579] / [i915#8260])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-rplp-1/igt@kms_setmode@basic-clone-single-crtc.html
#### Possible fixes ####
* igt@i915_selftest@live@migrate:
- bat-dg2-11: [DMESG-WARN][12] ([i915#7699]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-dg2-11/igt@i915_selftest@live@migrate.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-dg2-11/igt@i915_selftest@live@migrate.html
* igt@i915_selftest@live@requests:
- bat-mtlp-6: [DMESG-FAIL][14] ([i915#8497]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-mtlp-6/igt@i915_selftest@live@requests.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-mtlp-6/igt@i915_selftest@live@requests.html
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-d-dp-1:
- bat-dg2-8: [FAIL][16] ([i915#7932]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-dg2-8/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-d-dp-1.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-dg2-8/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-d-dp-1.html
#### Warnings ####
* igt@kms_psr@primary_mmap_gtt:
- bat-rplp-1: [ABORT][18] ([i915#8442]) -> [SKIP][19] ([i915#1072])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13306/bat-rplp-1/igt@kms_psr@primary_mmap_gtt.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/bat-rplp-1/igt@kms_psr@primary_mmap_gtt.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6763]: https://gitlab.freedesktop.org/drm/intel/issues/6763
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7932]: https://gitlab.freedesktop.org/drm/intel/issues/7932
[i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213
[i915#8260]: https://gitlab.freedesktop.org/drm/intel/issues/8260
[i915#8442]: https://gitlab.freedesktop.org/drm/intel/issues/8442
[i915#8497]: https://gitlab.freedesktop.org/drm/intel/issues/8497
[i915#8513]: https://gitlab.freedesktop.org/drm/intel/issues/8513
[i915#8676]: https://gitlab.freedesktop.org/drm/intel/issues/8676
[i915#8678]: https://gitlab.freedesktop.org/drm/intel/issues/8678
[i915#8679]: https://gitlab.freedesktop.org/drm/intel/issues/8679
[i915#8698]: https://gitlab.freedesktop.org/drm/intel/issues/8698
[i915#8699]: https://gitlab.freedesktop.org/drm/intel/issues/8699
[i915#8700]: https://gitlab.freedesktop.org/drm/intel/issues/8700
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7345 -> IGTPW_9240
CI-20190529: 20190529
CI_DRM_13306: fd802e7196f63720d52eb2bd6451ae9f61df6484 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_9240: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/index.html
IGT_7345: bedba6f82d70f8eb49c53cb2c45ee60a1eec04d1 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9240/index.html
[-- Attachment #2: Type: text/html, Size: 7886 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
2023-06-22 11:16 [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Jeevan B
2023-06-22 12:18 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_setmode: Fix dynamic subtests (rev2) Patchwork
@ 2023-06-22 12:55 ` Kamil Konieczny
2023-06-22 13:02 ` B, Jeevan
2023-06-23 3:49 ` Modem, Bhanuprakash
2 siblings, 1 reply; 10+ messages in thread
From: Kamil Konieczny @ 2023-06-22 12:55 UTC (permalink / raw)
To: igt-dev
Hi Jeevan,
On 2023-06-22 at 16:46:51 +0530, Jeevan B wrote:
> basic-clone-single-crtc and invalid-clone-exclusive-crtc were not
> part of dynamic subtest so tests were getting skipped. fixed the
> test to execute skipping tests as expected.
>
> v2: add missing call.
>
> Signed-off-by: Jeevan B <jeevan.b@intel.com>
> ---
> tests/kms_setmode.c | 26 +++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
> index a611d938..96fb0b4b 100644
> --- a/tests/kms_setmode.c
> +++ b/tests/kms_setmode.c
> @@ -647,20 +647,19 @@ static void test_one_combination(const struct test_config *tconf,
> struct crtc_config crtcs[MAX_CRTCS];
> int crtc_count;
> bool config_valid;
> + int i, pos = 0;
> + char test_name[256];
>
> setup_crtcs(tconf, cconfs, connector_count, crtcs,
> &crtc_count, &config_valid);
>
> - if (config_valid == !(tconf->flags & TEST_INVALID)) {
> - int i, pos = 0;
> - char test_name[256];
> -
> - for (i = 0; i < crtc_count; i++) {
> - if (i > 0)
> - pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
> - pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
> - }
> + for (i = 0; i < crtc_count; i++) {
> + if (i > 0)
> + pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
> + pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
> + }
>
> + if (config_valid == !(tconf->flags & TEST_INVALID)) {
> for (i = 0; i < crtc_count; i++) {
> struct crtc_config *crtc = &crtcs[i];
>
> @@ -679,16 +678,17 @@ static void test_one_combination(const struct test_config *tconf,
> ((i > 0) && (crtc[i - 1].mode.hdisplay > MAX_HDISPLAY_PER_CRTC) &&
> (abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
> igt_info("Combo: %s is not possible with selected mode(s).\n", test_name);
> - goto out;
> + cleanup_crtcs(crtcs, crtc_count);
> + return;
> }
> }
>
> igt_dynamic_f("%s", test_name)
> test_crtc_config(tconf, crtcs, crtc_count);
> + } else {
> + igt_dynamic_f("%s", test_name)
> + cleanup_crtcs(crtcs, crtc_count);
----------------------- ^
The name of function and its placement just before function end
suggest it is a cleanup, not a test.
I would advise going with git log and finding when these two
tests where executed with "normal", non-dynamic way and then
adjusting this function, or adding them as separate subtests
with proper configuration.
> }
> -
> -out:
> - cleanup_crtcs(crtcs, crtc_count);
Drop this change, looks dangereous.
Regards,
Kamil
> }
>
> static int assign_crtc_to_connectors(const struct test_config *tconf,
> --
> 2.41.0
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
2023-06-22 12:55 ` [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Kamil Konieczny
@ 2023-06-22 13:02 ` B, Jeevan
2023-06-23 3:52 ` Modem, Bhanuprakash
0 siblings, 1 reply; 10+ messages in thread
From: B, Jeevan @ 2023-06-22 13:02 UTC (permalink / raw)
To: Kamil Konieczny, igt-dev@lists.freedesktop.org
Hi Kamil,
> -----Original Message-----
> From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Sent: Thursday, June 22, 2023 6:26 PM
> To: igt-dev@lists.freedesktop.org
> Cc: B, Jeevan <jeevan.b@intel.com>; Modem, Bhanuprakash
> <bhanuprakash.modem@intel.com>
> Subject: Re: [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
>
> Hi Jeevan,
>
> On 2023-06-22 at 16:46:51 +0530, Jeevan B wrote:
> > basic-clone-single-crtc and invalid-clone-exclusive-crtc were not part
> > of dynamic subtest so tests were getting skipped. fixed the test to
> > execute skipping tests as expected.
> >
> > v2: add missing call.
> >
> > Signed-off-by: Jeevan B <jeevan.b@intel.com>
> > ---
> > tests/kms_setmode.c | 26 +++++++++++++-------------
> > 1 file changed, 13 insertions(+), 13 deletions(-)
> >
> > diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index
> > a611d938..96fb0b4b 100644
> > --- a/tests/kms_setmode.c
> > +++ b/tests/kms_setmode.c
> > @@ -647,20 +647,19 @@ static void test_one_combination(const struct
> test_config *tconf,
> > struct crtc_config crtcs[MAX_CRTCS];
> > int crtc_count;
> > bool config_valid;
> > + int i, pos = 0;
> > + char test_name[256];
> >
> > setup_crtcs(tconf, cconfs, connector_count, crtcs,
> > &crtc_count, &config_valid);
> >
> > - if (config_valid == !(tconf->flags & TEST_INVALID)) {
> > - int i, pos = 0;
> > - char test_name[256];
> > -
> > - for (i = 0; i < crtc_count; i++) {
> > - if (i > 0)
> > - pos += snprintf(&test_name[pos],
> ARRAY_SIZE(test_name) - pos, "-");
> > - pos += get_test_name_str(&crtcs[i],
> &test_name[pos], ARRAY_SIZE(test_name) - pos);
> > - }
> > + for (i = 0; i < crtc_count; i++) {
> > + if (i > 0)
> > + pos += snprintf(&test_name[pos],
> ARRAY_SIZE(test_name) - pos, "-");
> > + pos += get_test_name_str(&crtcs[i], &test_name[pos],
> ARRAY_SIZE(test_name) - pos);
> > + }
> >
> > + if (config_valid == !(tconf->flags & TEST_INVALID)) {
> > for (i = 0; i < crtc_count; i++) {
> > struct crtc_config *crtc = &crtcs[i];
> >
> > @@ -679,16 +678,17 @@ static void test_one_combination(const struct
> test_config *tconf,
> > ((i > 0) && (crtc[i - 1].mode.hdisplay >
> MAX_HDISPLAY_PER_CRTC) &&
> > (abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
> > igt_info("Combo: %s is not possible with
> selected mode(s).\n", test_name);
> > - goto out;
> > + cleanup_crtcs(crtcs, crtc_count);
> > + return;
> > }
> > }
> >
> > igt_dynamic_f("%s", test_name)
> > test_crtc_config(tconf, crtcs, crtc_count);
> > + } else {
> > + igt_dynamic_f("%s", test_name)
> > + cleanup_crtcs(crtcs, crtc_count);
> ----------------------- ^
> The name of function and its placement just before function end suggest it is
> a cleanup, not a test.
>
> I would advise going with git log and finding when these two tests where
> executed with "normal", non-dynamic way and then adjusting this function,
> or adding them as separate subtests with proper configuration.
>
This was before tests were converted to dynamic. (9f32d552afd7e7bb34b4cc3542e184b3be1a1dc8)
@@ -664,8 +684,19 @@ static void test_one_combination(const struct test_config *tconf,
setup_crtcs(tconf, cconfs, connector_count, crtcs,
&crtc_count, &config_valid);
- if (config_valid == !(tconf->flags & TEST_INVALID))
- test_crtc_config(tconf, crtcs, crtc_count);
+ if (config_valid == !(tconf->flags & TEST_INVALID)) {
+ int i, pos = 0;
+ char test_name[256];
+
+ for (i = 0; i < crtc_count; i++) {
+ if (i > 0)
+ pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
+ pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
+ }
+
+ igt_dynamic_f("%s", test_name)
+ test_crtc_config(tconf, crtcs, crtc_count);
+ }
cleanup_crtcs(crtcs, crtc_count);
}
> > }
> > -
> > -out:
> > - cleanup_crtcs(crtcs, crtc_count);
>
> Drop this change, looks dangereous.
>
> Regards,
> Kamil
>
> > }
> >
> > static int assign_crtc_to_connectors(const struct test_config *tconf,
> > --
> > 2.41.0
> >
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
2023-06-22 13:02 ` B, Jeevan
@ 2023-06-23 3:52 ` Modem, Bhanuprakash
0 siblings, 0 replies; 10+ messages in thread
From: Modem, Bhanuprakash @ 2023-06-23 3:52 UTC (permalink / raw)
To: B, Jeevan, Kamil Konieczny, igt-dev@lists.freedesktop.org
Hi Jeevan,
On Thu-22-06-2023 06:32 pm, B, Jeevan wrote:
> Hi Kamil,
>
>> -----Original Message-----
>> From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
>> Sent: Thursday, June 22, 2023 6:26 PM
>> To: igt-dev@lists.freedesktop.org
>> Cc: B, Jeevan <jeevan.b@intel.com>; Modem, Bhanuprakash
>> <bhanuprakash.modem@intel.com>
>> Subject: Re: [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
>>
>> Hi Jeevan,
>>
>> On 2023-06-22 at 16:46:51 +0530, Jeevan B wrote:
>>> basic-clone-single-crtc and invalid-clone-exclusive-crtc were not part
>>> of dynamic subtest so tests were getting skipped. fixed the test to
>>> execute skipping tests as expected.
>>>
>>> v2: add missing call.
>>>
>>> Signed-off-by: Jeevan B <jeevan.b@intel.com>
>>> ---
>>> tests/kms_setmode.c | 26 +++++++++++++-------------
>>> 1 file changed, 13 insertions(+), 13 deletions(-)
>>>
>>> diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index
>>> a611d938..96fb0b4b 100644
>>> --- a/tests/kms_setmode.c
>>> +++ b/tests/kms_setmode.c
>>> @@ -647,20 +647,19 @@ static void test_one_combination(const struct
>> test_config *tconf,
>>> struct crtc_config crtcs[MAX_CRTCS];
>>> int crtc_count;
>>> bool config_valid;
>>> + int i, pos = 0;
>>> + char test_name[256];
>>>
>>> setup_crtcs(tconf, cconfs, connector_count, crtcs,
>>> &crtc_count, &config_valid);
>>>
>>> - if (config_valid == !(tconf->flags & TEST_INVALID)) {
>>> - int i, pos = 0;
>>> - char test_name[256];
>>> -
>>> - for (i = 0; i < crtc_count; i++) {
>>> - if (i > 0)
>>> - pos += snprintf(&test_name[pos],
>> ARRAY_SIZE(test_name) - pos, "-");
>>> - pos += get_test_name_str(&crtcs[i],
>> &test_name[pos], ARRAY_SIZE(test_name) - pos);
>>> - }
>>> + for (i = 0; i < crtc_count; i++) {
>>> + if (i > 0)
>>> + pos += snprintf(&test_name[pos],
>> ARRAY_SIZE(test_name) - pos, "-");
>>> + pos += get_test_name_str(&crtcs[i], &test_name[pos],
>> ARRAY_SIZE(test_name) - pos);
>>> + }
>>>
>>> + if (config_valid == !(tconf->flags & TEST_INVALID)) {
>>> for (i = 0; i < crtc_count; i++) {
>>> struct crtc_config *crtc = &crtcs[i];
>>>
>>> @@ -679,16 +678,17 @@ static void test_one_combination(const struct
>> test_config *tconf,
>>> ((i > 0) && (crtc[i - 1].mode.hdisplay >
>> MAX_HDISPLAY_PER_CRTC) &&
>>> (abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
>>> igt_info("Combo: %s is not possible with
>> selected mode(s).\n", test_name);
>>> - goto out;
>>> + cleanup_crtcs(crtcs, crtc_count);
>>> + return;
>>> }
>>> }
>>>
>>> igt_dynamic_f("%s", test_name)
>>> test_crtc_config(tconf, crtcs, crtc_count);
>>> + } else {
>>> + igt_dynamic_f("%s", test_name)
>>> + cleanup_crtcs(crtcs, crtc_count);
>> ----------------------- ^
>> The name of function and its placement just before function end suggest it is
>> a cleanup, not a test.
>>
>> I would advise going with git log and finding when these two tests where
>> executed with "normal", non-dynamic way and then adjusting this function,
>> or adding them as separate subtests with proper configuration.
>>
> This was before tests were converted to dynamic. (9f32d552afd7e7bb34b4cc3542e184b3be1a1dc8)
> @@ -664,8 +684,19 @@ static void test_one_combination(const struct test_config *tconf,
> setup_crtcs(tconf, cconfs, connector_count, crtcs,
> &crtc_count, &config_valid);
>
> - if (config_valid == !(tconf->flags & TEST_INVALID))
> - test_crtc_config(tconf, crtcs, crtc_count);
> + if (config_valid == !(tconf->flags & TEST_INVALID)) {
> + int i, pos = 0;
> + char test_name[256];
> +
> + for (i = 0; i < crtc_count; i++) {
> + if (i > 0)
> + pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
> + pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
> + }
> +
> + igt_dynamic_f("%s", test_name)
> + test_crtc_config(tconf, crtcs, crtc_count);
> + }
What is wrong in this logic & how your patch fixes that?
- Bhanu
>
> cleanup_crtcs(crtcs, crtc_count);
> }
>
>>> }
>>> -
>>> -out:
>>> - cleanup_crtcs(crtcs, crtc_count);
>>
>> Drop this change, looks dangereous.
>>
>> Regards,
>> Kamil
>
>>
>>> }
>>>
>>> static int assign_crtc_to_connectors(const struct test_config *tconf,
>>> --
>>> 2.41.0
>>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
2023-06-22 11:16 [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Jeevan B
2023-06-22 12:18 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_setmode: Fix dynamic subtests (rev2) Patchwork
2023-06-22 12:55 ` [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Kamil Konieczny
@ 2023-06-23 3:49 ` Modem, Bhanuprakash
2023-06-23 4:20 ` B, Jeevan
2023-06-23 4:49 ` B, Jeevan
2 siblings, 2 replies; 10+ messages in thread
From: Modem, Bhanuprakash @ 2023-06-23 3:49 UTC (permalink / raw)
To: Jeevan B, igt-dev
Hi Jeevan,
On Thu-22-06-2023 04:46 pm, Jeevan B wrote:
> basic-clone-single-crtc and invalid-clone-exclusive-crtc were not
> part of dynamic subtest so tests were getting skipped. fixed the
> test to execute skipping tests as expected.
What does it mean these tests are not part of dynamic subtests?
AFAIK, all basic-* tests are positive test cases & there are
corresponding negative test cases (invalid-*)
If any positive test executed, the corresponding negative test is
supposed to skip & vice versa.
Example:
https://intel-gfx-ci.01.org/tree/drm-tip/shards-all.html?testfilter=kms_setmode&hosts=shard-glk
- basic-close-single-crtc: SKIP
- invalid-clone-single-crtc: PASS
- clone-executive-crtc: PASS
- invalid-clone-executive-crtc: SKIP
>
> v2: add missing call.
>
> Signed-off-by: Jeevan B <jeevan.b@intel.com>
> ---
> tests/kms_setmode.c | 26 +++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
> index a611d938..96fb0b4b 100644
> --- a/tests/kms_setmode.c
> +++ b/tests/kms_setmode.c
> @@ -647,20 +647,19 @@ static void test_one_combination(const struct test_config *tconf,
> struct crtc_config crtcs[MAX_CRTCS];
> int crtc_count;
> bool config_valid;
> + int i, pos = 0;
> + char test_name[256];
>
> setup_crtcs(tconf, cconfs, connector_count, crtcs,
> &crtc_count, &config_valid);
>
> - if (config_valid == !(tconf->flags & TEST_INVALID)) {
> - int i, pos = 0;
> - char test_name[256];
> -
> - for (i = 0; i < crtc_count; i++) {
> - if (i > 0)
> - pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
> - pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
> - }
> + for (i = 0; i < crtc_count; i++) {
> + if (i > 0)
> + pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
> + pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
> + }
>
> + if (config_valid == !(tconf->flags & TEST_INVALID)) {
> for (i = 0; i < crtc_count; i++) {
> struct crtc_config *crtc = &crtcs[i];
>
> @@ -679,16 +678,17 @@ static void test_one_combination(const struct test_config *tconf,
> ((i > 0) && (crtc[i - 1].mode.hdisplay > MAX_HDISPLAY_PER_CRTC) &&
> (abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
> igt_info("Combo: %s is not possible with selected mode(s).\n", test_name);
> - goto out;
> + cleanup_crtcs(crtcs, crtc_count);
> + return;
> }
> }
>
> igt_dynamic_f("%s", test_name)
> test_crtc_config(tconf, crtcs, crtc_count);
> + } else {
> + igt_dynamic_f("%s", test_name)
> + cleanup_crtcs(crtcs, crtc_count);
We are supposed to execute the test, not a cleanup. This will always
throw the test result as PASS (which is bogus) without even testing
anything.
- Bhanu
> }
> -
> -out:
> - cleanup_crtcs(crtcs, crtc_count);
> }
>
> static int assign_crtc_to_connectors(const struct test_config *tconf,
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
2023-06-23 3:49 ` Modem, Bhanuprakash
@ 2023-06-23 4:20 ` B, Jeevan
2023-06-23 4:49 ` B, Jeevan
1 sibling, 0 replies; 10+ messages in thread
From: B, Jeevan @ 2023-06-23 4:20 UTC (permalink / raw)
To: Modem, Bhanuprakash, igt-dev@lists.freedesktop.org
Hi Bhanu,
> -----Original Message-----
> From: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>
> Sent: Friday, June 23, 2023 9:20 AM
> To: B, Jeevan <jeevan.b@intel.com>; igt-dev@lists.freedesktop.org
> Cc: kamil.konieczny@linux.intel.com
> Subject: Re: [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
>
> Hi Jeevan,
>
> On Thu-22-06-2023 04:46 pm, Jeevan B wrote:
> > basic-clone-single-crtc and invalid-clone-exclusive-crtc were not part
> > of dynamic subtest so tests were getting skipped. fixed the test to
> > execute skipping tests as expected.
>
> What does it mean these tests are not part of dynamic subtests?
>
> AFAIK, all basic-* tests are positive test cases & there are corresponding
> negative test cases (invalid-*)
>
> If any positive test executed, the corresponding negative test is supposed to
> skip & vice versa.
>
> Example:
> https://intel-gfx-ci.01.org/tree/drm-tip/shards-
> all.html?testfilter=kms_setmode&hosts=shard-glk
>
>
> - basic-close-single-crtc: SKIP
> - invalid-clone-single-crtc: PASS
>
> - clone-executive-crtc: PASS
> - invalid-clone-executive-crtc: SKIP
>
> >
> > v2: add missing call.
> >
> > Signed-off-by: Jeevan B <jeevan.b@intel.com>
> > ---
> > tests/kms_setmode.c | 26 +++++++++++++-------------
> > 1 file changed, 13 insertions(+), 13 deletions(-)
> >
> > diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index
> > a611d938..96fb0b4b 100644
> > --- a/tests/kms_setmode.c
> > +++ b/tests/kms_setmode.c
> > @@ -647,20 +647,19 @@ static void test_one_combination(const struct
> test_config *tconf,
> > struct crtc_config crtcs[MAX_CRTCS];
> > int crtc_count;
> > bool config_valid;
> > + int i, pos = 0;
> > + char test_name[256];
> >
> > setup_crtcs(tconf, cconfs, connector_count, crtcs,
> > &crtc_count, &config_valid);
> >
> > - if (config_valid == !(tconf->flags & TEST_INVALID)) {
> > - int i, pos = 0;
> > - char test_name[256];
> > -
> > - for (i = 0; i < crtc_count; i++) {
> > - if (i > 0)
> > - pos += snprintf(&test_name[pos],
> ARRAY_SIZE(test_name) - pos, "-");
> > - pos += get_test_name_str(&crtcs[i],
> &test_name[pos], ARRAY_SIZE(test_name) - pos);
> > - }
> > + for (i = 0; i < crtc_count; i++) {
> > + if (i > 0)
> > + pos += snprintf(&test_name[pos],
> ARRAY_SIZE(test_name) - pos, "-");
> > + pos += get_test_name_str(&crtcs[i], &test_name[pos],
> ARRAY_SIZE(test_name) - pos);
> > + }
> >
> > + if (config_valid == !(tconf->flags & TEST_INVALID)) {
> > for (i = 0; i < crtc_count; i++) {
> > struct crtc_config *crtc = &crtcs[i];
> >
> > @@ -679,16 +678,17 @@ static void test_one_combination(const struct
> test_config *tconf,
> > ((i > 0) && (crtc[i - 1].mode.hdisplay >
> MAX_HDISPLAY_PER_CRTC) &&
> > (abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
> > igt_info("Combo: %s is not possible with
> selected mode(s).\n", test_name);
> > - goto out;
> > + cleanup_crtcs(crtcs, crtc_count);
> > + return;
> > }
> > }
> >
> > igt_dynamic_f("%s", test_name)
> > test_crtc_config(tconf, crtcs, crtc_count);
> > + } else {
> > + igt_dynamic_f("%s", test_name)
> > + cleanup_crtcs(crtcs, crtc_count);
>
> We are supposed to execute the test, not a cleanup. This will always throw
> the test result as PASS (which is bogus) without even testing anything.
Understood. I will make the change for this.
>
> - Bhanu
>
> > }
> > -
> > -out:
> > - cleanup_crtcs(crtcs, crtc_count);
> > }
> >
> > static int assign_crtc_to_connectors(const struct test_config
> > *tconf,
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
2023-06-23 3:49 ` Modem, Bhanuprakash
2023-06-23 4:20 ` B, Jeevan
@ 2023-06-23 4:49 ` B, Jeevan
1 sibling, 0 replies; 10+ messages in thread
From: B, Jeevan @ 2023-06-23 4:49 UTC (permalink / raw)
To: Modem, Bhanuprakash, igt-dev@lists.freedesktop.org
> -----Original Message-----
> From: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>
> Sent: Friday, June 23, 2023 9:20 AM
> To: B, Jeevan <jeevan.b@intel.com>; igt-dev@lists.freedesktop.org
> Cc: kamil.konieczny@linux.intel.com
> Subject: Re: [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
>
> Hi Jeevan,
>
> On Thu-22-06-2023 04:46 pm, Jeevan B wrote:
> > basic-clone-single-crtc and invalid-clone-exclusive-crtc were not part
> > of dynamic subtest so tests were getting skipped. fixed the test to
> > execute skipping tests as expected.
>
> What does it mean these tests are not part of dynamic subtests?
>
> AFAIK, all basic-* tests are positive test cases & there are corresponding
> negative test cases (invalid-*)
>
> If any positive test executed, the corresponding negative test is supposed to
> skip & vice versa.
Hi Bhanu,
Got it. Tests before converting to dynamic.
Starting subtest: basic-clone-single-crtc
Testing: basic-clone-single-crtc 2 connector combinations
Subtest basic-clone-single-crtc: SUCCESS (0.242s)
Starting subtest: invalid-clone-single-crtc
Testing: invalid-clone-single-crtc 2 connector combinations
Test id#1 CRTC count 1
CRTC[80] [Pipe A] Mode: 1920x1080@60Hz Connectors: DP-1[236], HDMI-A-2[255]
Test id#2 CRTC count 1
CRTC[131] [Pipe B] Mode: 1920x1080@60Hz Connectors: DP-1[236], HDMI-A-2[255]
Subtest invalid-clone-single-crtc: SUCCESS (0.371s)
Starting subtest: invalid-clone-exclusive-crtc
Testing: invalid-clone-exclusive-crtc 2 connector combinations
Subtest invalid-clone-exclusive-crtc: SUCCESS (0.330s)
Starting subtest: clone-exclusive-crtc
Testing: clone-exclusive-crtc 2 connector combinations
Test id#1 CRTC count 2
CRTC[80] [Pipe A] Mode: 3840x2160@60Hz Connectors: DP-1[236]
CRTC[131] [Pipe B] Mode: 1920x1200@60Hz Connectors: HDMI-A-2[255]
Test id#2 CRTC count 2
CRTC[131] [Pipe B] Mode: 3840x2160@60Hz Connectors: DP-1[236]
CRTC[80] [Pipe A] Mode: 1920x1200@60Hz Connectors: HDMI-A-2[255]
Subtest clone-exclusive-crtc: SUCCESS (1.282s)
So, when tests now started to skip these are getting caught by filters.
Should these skips be kept as expected behavior or should we modify tests ??
Thanks
Jeevan B
>
> Example:
> https://intel-gfx-ci.01.org/tree/drm-tip/shards-
> all.html?testfilter=kms_setmode&hosts=shard-glk
>
>
> - basic-close-single-crtc: SKIP
> - invalid-clone-single-crtc: PASS
>
> - clone-executive-crtc: PASS
> - invalid-clone-executive-crtc: SKIP
>
> >
> > v2: add missing call.
> >
> > Signed-off-by: Jeevan B <jeevan.b@intel.com>
> > ---
> > tests/kms_setmode.c | 26 +++++++++++++-------------
> > 1 file changed, 13 insertions(+), 13 deletions(-)
> >
> > diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index
> > a611d938..96fb0b4b 100644
> > --- a/tests/kms_setmode.c
> > +++ b/tests/kms_setmode.c
> > @@ -647,20 +647,19 @@ static void test_one_combination(const struct
> test_config *tconf,
> > struct crtc_config crtcs[MAX_CRTCS];
> > int crtc_count;
> > bool config_valid;
> > + int i, pos = 0;
> > + char test_name[256];
> >
> > setup_crtcs(tconf, cconfs, connector_count, crtcs,
> > &crtc_count, &config_valid);
> >
> > - if (config_valid == !(tconf->flags & TEST_INVALID)) {
> > - int i, pos = 0;
> > - char test_name[256];
> > -
> > - for (i = 0; i < crtc_count; i++) {
> > - if (i > 0)
> > - pos += snprintf(&test_name[pos],
> ARRAY_SIZE(test_name) - pos, "-");
> > - pos += get_test_name_str(&crtcs[i],
> &test_name[pos], ARRAY_SIZE(test_name) - pos);
> > - }
> > + for (i = 0; i < crtc_count; i++) {
> > + if (i > 0)
> > + pos += snprintf(&test_name[pos],
> ARRAY_SIZE(test_name) - pos, "-");
> > + pos += get_test_name_str(&crtcs[i], &test_name[pos],
> ARRAY_SIZE(test_name) - pos);
> > + }
> >
> > + if (config_valid == !(tconf->flags & TEST_INVALID)) {
> > for (i = 0; i < crtc_count; i++) {
> > struct crtc_config *crtc = &crtcs[i];
> >
> > @@ -679,16 +678,17 @@ static void test_one_combination(const struct
> test_config *tconf,
> > ((i > 0) && (crtc[i - 1].mode.hdisplay >
> MAX_HDISPLAY_PER_CRTC) &&
> > (abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
> > igt_info("Combo: %s is not possible with
> selected mode(s).\n", test_name);
> > - goto out;
> > + cleanup_crtcs(crtcs, crtc_count);
> > + return;
> > }
> > }
> >
> > igt_dynamic_f("%s", test_name)
> > test_crtc_config(tconf, crtcs, crtc_count);
> > + } else {
> > + igt_dynamic_f("%s", test_name)
> > + cleanup_crtcs(crtcs, crtc_count);
>
> We are supposed to execute the test, not a cleanup. This will always throw
> the test result as PASS (which is bogus) without even testing anything.
>
> - Bhanu
>
> > }
> > -
> > -out:
> > - cleanup_crtcs(crtcs, crtc_count);
> > }
> >
> > static int assign_crtc_to_connectors(const struct test_config
> > *tconf,
^ permalink raw reply [flat|nested] 10+ messages in thread
* [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
@ 2023-06-20 18:25 Jeevan B
2023-06-21 16:43 ` Kamil Konieczny
0 siblings, 1 reply; 10+ messages in thread
From: Jeevan B @ 2023-06-20 18:25 UTC (permalink / raw)
To: igt-dev
basic-clone-single-crtc and invalid-clone-exclusive-crtc were not
part of dynamic subtest so tests were getting skipped. fixed the
test to execute skipping tests as expected.
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
tests/kms_setmode.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
index a611d938..b1883b10 100644
--- a/tests/kms_setmode.c
+++ b/tests/kms_setmode.c
@@ -647,20 +647,19 @@ static void test_one_combination(const struct test_config *tconf,
struct crtc_config crtcs[MAX_CRTCS];
int crtc_count;
bool config_valid;
+ int i, pos = 0;
+ char test_name[256];
setup_crtcs(tconf, cconfs, connector_count, crtcs,
&crtc_count, &config_valid);
- if (config_valid == !(tconf->flags & TEST_INVALID)) {
- int i, pos = 0;
- char test_name[256];
-
- for (i = 0; i < crtc_count; i++) {
- if (i > 0)
- pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
- pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
- }
+ for (i = 0; i < crtc_count; i++) {
+ if (i > 0)
+ pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
+ pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
+ }
+ if (config_valid == !(tconf->flags & TEST_INVALID)) {
for (i = 0; i < crtc_count; i++) {
struct crtc_config *crtc = &crtcs[i];
@@ -685,7 +684,8 @@ static void test_one_combination(const struct test_config *tconf,
igt_dynamic_f("%s", test_name)
test_crtc_config(tconf, crtcs, crtc_count);
- }
+ } else
+ igt_dynamic_f("%s", test_name)
out:
cleanup_crtcs(crtcs, crtc_count);
--
2.36.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests
2023-06-20 18:25 Jeevan B
@ 2023-06-21 16:43 ` Kamil Konieczny
0 siblings, 0 replies; 10+ messages in thread
From: Kamil Konieczny @ 2023-06-21 16:43 UTC (permalink / raw)
To: igt-dev
Hi Jeevan,
On 2023-06-20 at 23:55:08 +0530, Jeevan B wrote:
> basic-clone-single-crtc and invalid-clone-exclusive-crtc were not
> part of dynamic subtest so tests were getting skipped. fixed the
> test to execute skipping tests as expected.
>
> Signed-off-by: Jeevan B <jeevan.b@intel.com>
> ---
> tests/kms_setmode.c | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
> index a611d938..b1883b10 100644
> --- a/tests/kms_setmode.c
> +++ b/tests/kms_setmode.c
> @@ -647,20 +647,19 @@ static void test_one_combination(const struct test_config *tconf,
> struct crtc_config crtcs[MAX_CRTCS];
> int crtc_count;
> bool config_valid;
> + int i, pos = 0;
> + char test_name[256];
>
> setup_crtcs(tconf, cconfs, connector_count, crtcs,
> &crtc_count, &config_valid);
>
> - if (config_valid == !(tconf->flags & TEST_INVALID)) {
> - int i, pos = 0;
> - char test_name[256];
> -
> - for (i = 0; i < crtc_count; i++) {
> - if (i > 0)
> - pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
> - pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
> - }
> + for (i = 0; i < crtc_count; i++) {
> + if (i > 0)
> + pos += snprintf(&test_name[pos], ARRAY_SIZE(test_name) - pos, "-");
> + pos += get_test_name_str(&crtcs[i], &test_name[pos], ARRAY_SIZE(test_name) - pos);
> + }
>
> + if (config_valid == !(tconf->flags & TEST_INVALID)) {
> for (i = 0; i < crtc_count; i++) {
> struct crtc_config *crtc = &crtcs[i];
>
> @@ -685,7 +684,8 @@ static void test_one_combination(const struct test_config *tconf,
>
> igt_dynamic_f("%s", test_name)
----------------------------------- ^
This declares test name.
> test_crtc_config(tconf, crtcs, crtc_count);
----------------------- ^
And this executes it.
> - }
> + } else
> + igt_dynamic_f("%s", test_name)
Call to test is missing here.
Regards,
Kamil
>
> out:
> cleanup_crtcs(crtcs, crtc_count);
> --
> 2.36.0
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-06-23 4:49 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-22 11:16 [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Jeevan B
2023-06-22 12:18 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_setmode: Fix dynamic subtests (rev2) Patchwork
2023-06-22 12:55 ` [igt-dev] [PATCH i-g-t] tests/kms_setmode: Fix dynamic subtests Kamil Konieczny
2023-06-22 13:02 ` B, Jeevan
2023-06-23 3:52 ` Modem, Bhanuprakash
2023-06-23 3:49 ` Modem, Bhanuprakash
2023-06-23 4:20 ` B, Jeevan
2023-06-23 4:49 ` B, Jeevan
-- strict thread matches above, loose matches on Subject: below --
2023-06-20 18:25 Jeevan B
2023-06-21 16:43 ` Kamil Konieczny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox