Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp734781pxk; Wed, 23 Sep 2020 14:55:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNinuB/cTA6z+Ihu1SLmpLlL9MfvJsIFHUCgC8WUcpApHN5xgLxkgnV0XMWItRG6Tk+72T X-Received: by 2002:a50:ce09:: with SMTP id y9mr1383304edi.91.1600898122947; Wed, 23 Sep 2020 14:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600898122; cv=none; d=google.com; s=arc-20160816; b=DH/BGD9ULrpWfz3QWNi1iSX+wKZlFMQMuLT7VcrRoMD289jj7x2WLMvyy1QbhHUxDj iI+I0CnTeCT9gzRezWQonxAQY5+7mVVx1B75khFM6MbDqqxvVWtT0GAGGSQ0PBIPuqGe +5mH4gA2eaIh1u6lSJhbzTTt6MbgJE7hsseP5Xqm6s9qIlwsD988N6i9SvoRI/ecZ8PK ExSCjCBGGMyLS3PTTZZ9v3zRL7IQBavKTBizYETMvmeyhoUPO1r5T+pc26hv2oLAf7R6 4WNhEGLVomAz5yqvB0rPcH3yUk+5LvMKkdOceRHCkXzNML9GDb8/ZwykCfEksMMC96F/ DLrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fOb33T+YNOHc4vIBVgqzuq7U+UoXOh9A3nK6B7gM0do=; b=JjnsjuIL7RCIGLe1Xt74bej/q1wXkFy3ZGDBIOxYOXtoTT9jqi05MMWcsmE4zp6db+ mszOnOVy0z2WueViy/qb6yJYTp6NUnvkEqHgRY3MXAoXSky7XtO0wxNq0qM865iw8syI NCgewi6zuo8j1WEpi6WUKyVI2eV1jAXHEiJR2vcOxlG62VS5CC85Mgv93xIjdysrN8Is pPRsSPFTZSmCHsurS4gvkMGP/3gTh1vkoxLfu27j57LK2F58KnP2IdbJHaPIMHIq6495 sJkCNEN95RTiyEim6jvQxtArbVVwrgBuyESfR9EVC8nfigsT8/gnv8Iugn62zfkouNCp A47g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=UIrV3HdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si745446edy.183.2020.09.23.14.54.59; Wed, 23 Sep 2020 14:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=UIrV3HdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbgIWVxl (ORCPT + 99 others); Wed, 23 Sep 2020 17:53:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbgIWVxl (ORCPT ); Wed, 23 Sep 2020 17:53:41 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82981C0613CE for ; Wed, 23 Sep 2020 14:53:41 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id 60so1250192otw.3 for ; Wed, 23 Sep 2020 14:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fOb33T+YNOHc4vIBVgqzuq7U+UoXOh9A3nK6B7gM0do=; b=UIrV3HdF2956LQEYJdqcgj3NASCJwUzME0jGDZrc8T8x/GnbaKUwPdLcnQ5Ze1tOBG DPPFL7J30nCzElb6Ryo9LWY6A/qtpfhiqM4yVuQ2KiZM/Unn46Jh+DjAkWNG3wsj1pHH 7eso/9lJqZ7RjsxGYz/cF9AlxtY5DUyvosIuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fOb33T+YNOHc4vIBVgqzuq7U+UoXOh9A3nK6B7gM0do=; b=crY9dC3gw8Go0/ROGrIIO605C+km82/dAodYfsSvA+ScxE9rIlgb0de51wr7i5C1pa tzdBg8qZCbvgn6J5qavch6Jww/H2wDVSp0vFsXZACbPCnzQ4ANLH+W41/59pOdcZ96M6 m/RLvjrb2h3a94s7FPLh19E4SjariqK9wIRGJYkXlzaFOJp3A0VI/tot36zyt5VlTlKD h05gfU5WrAwiBzl3LdGYTTmnTqiQ48fpIccxC0/dovcp7ISi/IbEvNyHG6dC12izykon TffJ/UF/cpsEUX0wbGQQ7H9dZsPRWUfMp10qK7LDX4Fa/yD1wWSjfp/hqbxImSog1GN1 yuNQ== X-Gm-Message-State: AOAM530gkR3xEAHLlZFI8Zeq7g47YBgLKjqk1KH45zw7asXURxNuzxOC qUefDhRGSnzZd9bCfdlI4JINmA== X-Received: by 2002:a05:6830:1191:: with SMTP id u17mr1099399otq.335.1600898020691; Wed, 23 Sep 2020 14:53:40 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id e19sm323206ote.37.2020.09.23.14.53.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2020 14:53:40 -0700 (PDT) Subject: Re: [PATCH v1] kunit: tool: fix --alltests flag To: Brendan Higgins , shuah@kernel.org, davidgow@google.com Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, Shuah Khan References: <20200923211938.3727976-1-brendanhiggins@google.com> From: Shuah Khan Message-ID: <3fbc056e-6baa-a457-cc5f-058606903fe3@linuxfoundation.org> Date: Wed, 23 Sep 2020 15:53:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200923211938.3727976-1-brendanhiggins@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/23/20 3:19 PM, Brendan Higgins wrote: > Alltests flag evidently stopped working when run from outside of the > root of the source tree, so fix that. Also add an additional broken > config to the broken_on_uml config. > > Signed-off-by: Brendan Higgins > --- > tools/testing/kunit/configs/broken_on_uml.config | 1 + > tools/testing/kunit/kunit_kernel.py | 15 ++++++++++----- > 2 files changed, 11 insertions(+), 5 deletions(-) > > diff --git a/tools/testing/kunit/configs/broken_on_uml.config b/tools/testing/kunit/configs/broken_on_uml.config > index 239b9f03da2c..a7f0603d33f6 100644 > --- a/tools/testing/kunit/configs/broken_on_uml.config > +++ b/tools/testing/kunit/configs/broken_on_uml.config > @@ -39,3 +39,4 @@ > # CONFIG_QCOM_CPR is not set > # CONFIG_RESET_BRCMSTB_RESCAL is not set > # CONFIG_RESET_INTEL_GW is not set > +# CONFIG_ADI_AXI_ADC is not set > diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py > index e20e2056cb38..1b1826500f61 100644 > --- a/tools/testing/kunit/kunit_kernel.py > +++ b/tools/testing/kunit/kunit_kernel.py > @@ -53,18 +53,23 @@ class LinuxSourceTreeOperations(object): > except subprocess.CalledProcessError as e: > raise ConfigError(e.output) > > - def make_allyesconfig(self): > + def make_allyesconfig(self, build_dir, make_options): > kunit_parser.print_with_timestamp( > 'Enabling all CONFIGs for UML...') > + command = ['make', 'ARCH=um', 'allyesconfig'] > + if make_options: > + command.extend(make_options) > + if build_dir: > + command += ['O=' + build_dir] > process = subprocess.Popen( > - ['make', 'ARCH=um', 'allyesconfig'], > + command, > stdout=subprocess.DEVNULL, > stderr=subprocess.STDOUT) > process.wait() > kunit_parser.print_with_timestamp( > 'Disabling broken configs to run KUnit tests...') > with ExitStack() as es: > - config = open(KCONFIG_PATH, 'a') > + config = open(get_kconfig_path(build_dir), 'a') > disable = open(BROKEN_ALLCONFIG_PATH, 'r').read() > config.write(disable) > kunit_parser.print_with_timestamp( > @@ -161,9 +166,9 @@ class LinuxSourceTree(object): > return self.build_config(build_dir, make_options) > > def build_um_kernel(self, alltests, jobs, build_dir, make_options): > - if alltests: > - self._ops.make_allyesconfig() > try: > + if alltests: > + self._ops.make_allyesconfig(build_dir, make_options) > self._ops.make_olddefconfig(build_dir, make_options) > self._ops.make(jobs, build_dir, make_options) > except (ConfigError, BuildError) as e: > > base-commit: 92a2b470086f68bf35eb9f94b6cb5ebdfac41b25 > Thanks. Applied to linux-kselftest kunit-fiex for 5.10-rc1 thanks, -- Shuah