From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: petri.latvala@intel.com
Subject: [igt-dev] [PATCH i-g-t] tests/kms_hdr: Made debug info more evident
Date: Fri, 13 Mar 2020 18:55:56 +0530 [thread overview]
Message-ID: <20200313132556.26038-1-swati2.sharma@intel.com> (raw)
In present scenario, whenever subtest gets SKIPPED we get debug info
"connector property not found or panel is non-HDR" which is quite vague.
Added igt_info() stating the actual reason of skip. This will help in
bug assessment too.
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/kms_hdr.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c
index 677936c6..71372556 100644
--- a/tests/kms_hdr.c
+++ b/tests/kms_hdr.c
@@ -285,7 +285,7 @@ static void test_bpc_switch(data_t *data, uint32_t flags)
valid_tests++;
}
- igt_require_f(valid_tests, "No connector found with MAX BPC connector property\n");
+ igt_require_f(valid_tests, "No connector found with max_bpc connector property\n");
}
static bool cta_block(const char *edid_ext)
@@ -609,24 +609,26 @@ static void test_hdr(data_t *data, const char *test_name, uint32_t flags)
* set MAX_BPC property to 10bpc prior to setting
* HDR metadata property. Therefore, checking.
*/
- if (!has_max_bpc(output))
- continue;
-
- if (!has_hdr(output))
+ if (!has_max_bpc(output) || !has_hdr(output)) {
+ igt_info("%s connector not found with HDR metadata/max_bpc connector property\n", output->name);
continue;
+ }
- if (!is_panel_hdr(data, output))
+ if (!is_panel_hdr(data, output)) {
+ igt_info("Panel attached via %s connector is non-HDR\n", output->name);
continue;
+ }
igt_info("HDR %s test execution on %s\n", test_name, output->name);
if (flags & TEST_NONE || flags & TEST_DPMS || flags & TEST_SUSPEND)
test_static_toggle(data, output, flags);
if (flags & TEST_SWAP)
test_static_swap(data, output);
+
valid_tests++;
}
- igt_require_f(valid_tests, "No connector found with HDR metadata/MAX BPC connector property (or) panel is Non-HDR\n");
+ igt_require_f(valid_tests, "No connector found with HDR metadata/max_bpc connector property (or) panel is non-HDR\n");
}
igt_main
--
2.25.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2020-03-13 13:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-13 13:25 Swati Sharma [this message]
2020-03-13 14:01 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_hdr: Made debug info more evident Patchwork
2020-03-13 20:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-03-16 9:05 ` [igt-dev] [PATCH i-g-t] " Petri Latvala
2020-03-19 7:28 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200313132556.26038-1-swati2.sharma@intel.com \
--to=swati2.sharma@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox