* [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language
@ 2020-09-14 16:37 Thomas Huth
2020-09-14 16:51 ` Claudio Fontana
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Thomas Huth @ 2020-09-14 16:37 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier, Paolo Bonzini, philmd, Markus Armbruster
We simply want to ignore certain queries here, so let's rather
use the term 'ignore' to express this intention.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
v2: Changed naming according to suggestions
tests/qtest/qmp-cmd-test.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
index 3109a9fe96..8a4c570e83 100644
--- a/tests/qtest/qmp-cmd-test.c
+++ b/tests/qtest/qmp-cmd-test.c
@@ -82,9 +82,9 @@ static void test_query(const void *data)
qtest_quit(qts);
}
-static bool query_is_blacklisted(const char *cmd)
+static bool query_is_ignored(const char *cmd)
{
- const char *blacklist[] = {
+ const char *ignored[] = {
/* Not actually queries: */
"add-fd",
/* Success depends on target arch: */
@@ -101,8 +101,8 @@ static bool query_is_blacklisted(const char *cmd)
};
int i;
- for (i = 0; blacklist[i]; i++) {
- if (!strcmp(cmd, blacklist[i])) {
+ for (i = 0; ignored[i]; i++) {
+ if (!strcmp(cmd, ignored[i])) {
return true;
}
}
@@ -179,7 +179,7 @@ static void add_query_tests(QmpSchema *schema)
continue;
}
- if (query_is_blacklisted(si->name)) {
+ if (query_is_ignored(si->name)) {
continue;
}
--
2.18.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language
2020-09-14 16:37 [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language Thomas Huth
@ 2020-09-14 16:51 ` Claudio Fontana
2020-09-14 20:39 ` Thomas Huth
2020-09-15 9:34 ` Daniel P. Berrangé
2020-09-15 12:59 ` Philippe Mathieu-Daudé
2 siblings, 1 reply; 5+ messages in thread
From: Claudio Fontana @ 2020-09-14 16:51 UTC (permalink / raw)
To: Thomas Huth
Cc: Laurent Vivier, Paolo Bonzini, philmd, qemu-devel,
Markus Armbruster
It seems to me that "blacklist" is a very commonly used technical term,
and expresses the concept more precisely.
I am not sure what "inclusive language" is or what relationship it has with technical work on QEMU.
Thanks,
Claudio
On 9/14/20 6:37 PM, Thomas Huth wrote:
> We simply want to ignore certain queries here, so let's rather
> use the term 'ignore' to express this intention.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> v2: Changed naming according to suggestions
>
> tests/qtest/qmp-cmd-test.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
> index 3109a9fe96..8a4c570e83 100644
> --- a/tests/qtest/qmp-cmd-test.c
> +++ b/tests/qtest/qmp-cmd-test.c
> @@ -82,9 +82,9 @@ static void test_query(const void *data)
> qtest_quit(qts);
> }
>
> -static bool query_is_blacklisted(const char *cmd)
> +static bool query_is_ignored(const char *cmd)
> {
> - const char *blacklist[] = {
> + const char *ignored[] = {
> /* Not actually queries: */
> "add-fd",
> /* Success depends on target arch: */
> @@ -101,8 +101,8 @@ static bool query_is_blacklisted(const char *cmd)
> };
> int i;
>
> - for (i = 0; blacklist[i]; i++) {
> - if (!strcmp(cmd, blacklist[i])) {
> + for (i = 0; ignored[i]; i++) {
> + if (!strcmp(cmd, ignored[i])) {
> return true;
> }
> }
> @@ -179,7 +179,7 @@ static void add_query_tests(QmpSchema *schema)
> continue;
> }
>
> - if (query_is_blacklisted(si->name)) {
> + if (query_is_ignored(si->name)) {
> continue;
> }
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language
2020-09-14 16:51 ` Claudio Fontana
@ 2020-09-14 20:39 ` Thomas Huth
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2020-09-14 20:39 UTC (permalink / raw)
To: Claudio Fontana
Cc: Laurent Vivier, Paolo Bonzini, philmd, qemu-devel,
Markus Armbruster
On 14/09/2020 18.51, Claudio Fontana wrote:
> It seems to me that "blacklist" is a very commonly used technical term,
> and expresses the concept more precisely.
>
> I am not sure what "inclusive language" is or what relationship it has with technical work on QEMU.
See e.g.: https://itsfoss.com/linux-kernel-inclusive-code/
Even the Linux kernel folks are trying to avoid the terms in new code:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=master#n322
HTH,
Thomas
> Thanks,
>
> Claudio
>
> On 9/14/20 6:37 PM, Thomas Huth wrote:
>> We simply want to ignore certain queries here, so let's rather
>> use the term 'ignore' to express this intention.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>> v2: Changed naming according to suggestions
>>
>> tests/qtest/qmp-cmd-test.c | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language
2020-09-14 16:37 [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language Thomas Huth
2020-09-14 16:51 ` Claudio Fontana
@ 2020-09-15 9:34 ` Daniel P. Berrangé
2020-09-15 12:59 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 5+ messages in thread
From: Daniel P. Berrangé @ 2020-09-15 9:34 UTC (permalink / raw)
To: Thomas Huth
Cc: Laurent Vivier, Paolo Bonzini, philmd, qemu-devel,
Markus Armbruster
On Mon, Sep 14, 2020 at 06:37:55PM +0200, Thomas Huth wrote:
> We simply want to ignore certain queries here, so let's rather
> use the term 'ignore' to express this intention.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> v2: Changed naming according to suggestions
>
> tests/qtest/qmp-cmd-test.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language
2020-09-14 16:37 [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language Thomas Huth
2020-09-14 16:51 ` Claudio Fontana
2020-09-15 9:34 ` Daniel P. Berrangé
@ 2020-09-15 12:59 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-09-15 12:59 UTC (permalink / raw)
To: Thomas Huth, qemu-devel; +Cc: Laurent Vivier, Paolo Bonzini, Markus Armbruster
On 9/14/20 6:37 PM, Thomas Huth wrote:
> We simply want to ignore certain queries here, so let's rather
> use the term 'ignore' to express this intention.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> v2: Changed naming according to suggestions
>
> tests/qtest/qmp-cmd-test.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-09-15 13:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-14 16:37 [PATCH v2] tests/qtest/qmp-cmd-test: Use inclusive language Thomas Huth
2020-09-14 16:51 ` Claudio Fontana
2020-09-14 20:39 ` Thomas Huth
2020-09-15 9:34 ` Daniel P. Berrangé
2020-09-15 12:59 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).