Received: by 10.192.165.148 with SMTP id m20csp3460527imm; Mon, 7 May 2018 12:42:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZowdHjaXh7PPAoeBEI+88efTPlg4iVrUzkaD+bPoMdCTATeDFM/VJQ0V5q3D7m8Zx8urv3H X-Received: by 10.98.76.83 with SMTP id z80mr37686605pfa.181.1525722125622; Mon, 07 May 2018 12:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525722125; cv=none; d=google.com; s=arc-20160816; b=HwnuuK5m0Z3UIS3jhfP+87RywEb00XnY4WvXk0tuw8NdFSGP1yqc/mExjYT6mXyLNe nLKvSW8IPLXeKbbZtZUfgwLNEvic6IZ1/29QRPhHoUYRaiLhIM99aWBQkGf34EYASFQ4 CD+bKksKFiMDdflTOMnrxM1GJwV8uwqNkr0dQz6/q/niCkN1LGnjjYG13z4qPlu872pq kbMeUHSM2wNrghHY3pBhhxhaMyuKfRSMIrTUXYGBpSequCGLsOTJjFxjKRQ6MQuuzSQM Txzx/Ff7y1laLTSt3yUDX5xuTl3dtqwYjmFMso4XsxV7BKo6AmBexrOcauHCxcnrwBQK FY/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=wxETXfQQ+D0wBaVlbjSJWNgfSSehcWWpDQc0Rvn3Vws=; b=FX68/vvqWTxCMHLJtTK1jfWVaEevdgtKWDvEUJLS67npga8uf+6/gc4VOeAL/ZIcVU 0b+/Ft2/3zconnhxqJItb8P7uowQ/20obUKIadW2zVpghHEFLw7RbUXZaiQoE8d3xOE6 YDr/RhfgIsLEDDgIONYTiJ6A02u9aypMEpOTUmAvN/IHp6LFS7Cnv6D1BBlVnaq+jlMq FnIt9rYKORh0JYVloADYY26dc1bYJnMkgASJY8ZXGb1ZSYAmYFRyZfDL9mqyKgMu3HcI wQvA7knKlDd/gZYZ8wfn4q6CzQ0ISZHW2lK1Iw0kMD2gRk++aXmrsXHdy8zGD0tiibvw lJVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b60-v6si22997141plc.270.2018.05.07.12.41.50; Mon, 07 May 2018 12:42:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752781AbeEGTlm (ORCPT + 99 others); Mon, 7 May 2018 15:41:42 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:41289 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752217AbeEGTlk (ORCPT ); Mon, 7 May 2018 15:41:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 24D61C1449; Mon, 7 May 2018 19:41:40 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo01-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yfdZmXNpeTpZ; Mon, 7 May 2018 19:41:40 +0000 (UTC) Received: from [192.168.1.87] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 380C0C0444; Mon, 7 May 2018 19:41:32 +0000 (UTC) Subject: Re: [PATCH 14/24] selftests: kvm: return Kselftest Skip code for skipped tests To: Paolo Bonzini , hofsass@google.com Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20180505011328.32078-1-shuah@kernel.org> <20180505011328.32078-14-shuah@kernel.org> <08ca6038-00a0-1526-493a-36e6732b5934@redhat.com> From: Shuah Khan Message-ID: <004c6cf7-a79d-ab00-ee68-f8c5bc7f5988@kernel.org> Date: Mon, 7 May 2018 13:41:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <08ca6038-00a0-1526-493a-36e6732b5934@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/07/2018 05:46 AM, Paolo Bonzini wrote: > On 05/05/2018 03:13, Shuah Khan (Samsung OSG) wrote: >> When kvm test is skipped because of unmet dependencies and/or unsupported >> configuration, it exits with error which is treated as a fail by the >> Kselftest framework. This leads to false negative result even when the test >> could not be run. >> >> Change it to return kselftest skip code when a test gets skipped to clearly >> report that the test could not be run. >> >> Change it to use ksft_exit_skip() when the test is skipped. In addition, >> refine test_assert() message to include strerror() string and add explicit >> check for root user to clearly identofy non-root user skip case. > > Root should not be needed. Will remove the root check and send v2. > > Otherwise > > Acked-by: Paolo Bonzini > thanks, -- Shuah