public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] chamelium: Ignore errors when fetching AdapterAllowed
@ 2023-01-03 13:30 Petri Latvala
  2023-01-03 15:54 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Petri Latvala @ 2023-01-03 13:30 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala

Not setting AdapterAllowed in .igtrc should be considered a valid
configuration. The default value of 'false' from
g_key_file_get_boolean when the field is missing is exactly what we
want to use, and storing the missing field error in the 'error'
variable leads to an error such as

(kms_chamelium:1713) igt_chamelium-WARNING: Failed to read chamelium port ID for DP-3: Key file does not have key “AdapterAllowed” in group “Chamelium:HDMI-A-2”

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Ryszard Knop <ryszard.knop@intel.com>
---
 lib/igt_chamelium.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c
index 79920de1..6506330e 100644
--- a/lib/igt_chamelium.c
+++ b/lib/igt_chamelium.c
@@ -2477,7 +2477,7 @@ static bool chamelium_read_port_mappings(struct chamelium *chamelium,
 		}
 
 		port->adapter_allowed = g_key_file_get_boolean(igt_key_file, group,
-		                                               "AdapterAllowed", &error);
+		                                               "AdapterAllowed", NULL);
 
 		for (j = 0;
 		     j < res->count_connectors && !port->connector_id;
-- 
2.30.2

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

end of thread, other threads:[~2023-01-04 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 13:30 [igt-dev] [PATCH i-g-t] chamelium: Ignore errors when fetching AdapterAllowed Petri Latvala
2023-01-03 15:54 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-01-04  0:04 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-01-04 13:01 ` [igt-dev] [PATCH i-g-t] " Knop, Ryszard

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