All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lukáš Doktor" <ldoktor@redhat.com>
To: Andrew Jones <drjones@redhat.com>
Cc: kvm@vger.kernel.org, pbonzini@redhat.com, lvivier@redhat.com,
	rkrcmar@redhat.com
Subject: Re: [PATCH 2/2] powerpc: Improve "kvm unavailable" message
Date: Mon, 11 Apr 2016 16:50:02 +0200	[thread overview]
Message-ID: <570BB99A.4010406@redhat.com> (raw)
In-Reply-To: <20160411120204.yxi2bdxalaybcbop@hawk.localdomain>

Dne 11.4.2016 v 14:02 Andrew Jones napsal(a):
> On Mon, Apr 11, 2016 at 01:37:53PM +0200, Lukáš Doktor wrote:
>> The message when ACCEL=kvm and kvm not available is rather confusing.
>> Let's produce (hopefully) easier to understand message.
>>
>> Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
>> ---
>>   powerpc/run | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/powerpc/run b/powerpc/run
>> index 56698e6..adffb93 100755
>> --- a/powerpc/run
>> +++ b/powerpc/run
>> @@ -16,7 +16,7 @@ if [ -c /dev/kvm ]; then
>>   fi
>>
>>   if [ "$ACCEL" = "kvm" ] && [ "$kvm_available" != "yes" ]; then
>> -	echo "skip $TESTNAME (kvm only)"
>> +	echo "skip $TESTNAME (kvm not available on your system)"
>
> This will now be inconsistent with scripts/runtime.bash. Also,
> the 'kvm only' message conveys that this test can only run with
> kvm, as opposed to also with tcg. While I agree it's terse, we've
> now lost that information with the new message. Additionally, I
> would say 'this system' instead of 'your system' in the message.
>
> I think Radim has some plans for giving run script error messages
> an overhaul. Maybe he can address this one with that series too?
> Anyway, for now, I would suggest we drop this patch.
>
I thought the message probably has some inner-context, but for me it was 
super confusing. Even more because I'm using

     ACCEL=kvm,kvm-type=PR ...

in some of my power testing, which works well, but when I tried

     ACCEL=kvm ...

it reported test skips. I'm looking forward to some proper errors 
handling (and ways to pass SKIPs as well).

Thank you and feel free to drop this patch,
Lukáš

> Thanks,
> drew
>
>>   	exit 2
>>   fi
>>
>> --
>> 2.5.5
>>


      reply	other threads:[~2016-04-11 14:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-11 11:37 [kvm-unit-tests PATCH] fix machine type handling for ppc64le Lukáš Doktor
2016-04-11 11:37 ` [PATCH 1/2] scripts: Handle ppc64le machine name in mkstandalone Lukáš Doktor
2016-04-11 11:56   ` Andrew Jones
2016-05-10 12:36   ` Paolo Bonzini
2016-04-11 11:37 ` [PATCH 2/2] powerpc: Improve "kvm unavailable" message Lukáš Doktor
2016-04-11 12:02   ` Andrew Jones
2016-04-11 14:50     ` Lukáš Doktor [this message]

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=570BB99A.4010406@redhat.com \
    --to=ldoktor@redhat.com \
    --cc=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.