Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1646851ybt; Thu, 18 Jun 2020 13:47:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGb038quKpVFDPn3DDt1a17qAEfxexMcQxSfbYXQ30u7M/munO5G29sBPTa0u0vbGbK/s9 X-Received: by 2002:a05:6402:943:: with SMTP id h3mr60944edz.89.1592513242692; Thu, 18 Jun 2020 13:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592513242; cv=none; d=google.com; s=arc-20160816; b=ytFgZ1wJtm4kN++tgzVcU3rLb3UZIOk6GSOHri6Xf2c+i01rGCFvBch+F8j3zDWj02 5VnRVzQBgk2gLoYPDLNzTJiL3TdZpoum1jslRntR3SsMoU6X7I6mF+gNQiMnqNvSlfZP m4txyVh+pXvKDdbWoaU3xVSNmosh3q4lbU/qdiA+7kQwfVSEErNRfRoP8ScY9HKn3TYG t0HBiiBk6iBefAzPRCqua87npqSG6Nf4ekRicgi9pq16CF/Urs2cTmaBNiwF/OeGWRro vwDzYE4YXQN07XmLWpQkpvSYIsQOHSvQPamc+NMdBuJECjsA9dxfWBzPDikKDInnIYoK 9Lbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2vYguTxknGE8Dx16795P40n1hyMI+4rqo7SoKdZ0n4M=; b=q7N5ONJAckh5LyKh47YtNd4M6f69i0F/ZFhJl2V5Nhv/h97l5C95dGD+hRYc3mCaey tLZSdMXqUrg1nhLIt4oZNbQdrjDSy+pie+Mar/9pyqfLz+yjJdJu3ekPxIrfIn4IBpRa 2sZFtXL4PypQUxUkXBg+8ct4Tsomo7nqSnIkrybQk8Hgf0My177BYSh/YwdiPYsaisp7 Af0VI9R9Pm/CPvKztSUQrHNfXnMosAi+EjCler1Eu/tuwpCYQBNKBrdNy5RyZ9G003Js 05cxxcKuuXZaeTNqWy++9Qzlrj5Anu4jG2Lnumbc+aCSexakm6nVGLO00xtNbw5jEwyQ wmbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jUQk5nqz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si2524457ejg.735.2020.06.18.13.46.59; Thu, 18 Jun 2020 13:47: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=@google.com header.s=20161025 header.b=jUQk5nqz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbgFRUbh (ORCPT + 99 others); Thu, 18 Jun 2020 16:31:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbgFRUbf (ORCPT ); Thu, 18 Jun 2020 16:31:35 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF21C06174E for ; Thu, 18 Jun 2020 13:31:35 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id l24so3445353pgb.5 for ; Thu, 18 Jun 2020 13:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2vYguTxknGE8Dx16795P40n1hyMI+4rqo7SoKdZ0n4M=; b=jUQk5nqzrPWoyZry6OFj3XXe2iWiykd0oEPPhNsYguTw0jHnq0ttSeXC05Jbcj+aKH i2w49bRIQ5UXe4x22BDcgWgjawQPc1s94rGXML4EP3kzY94O7KzGbJmSf8A849v/UXa2 oRf+0BFrbHWIBtEoBJdAikbWPgiYzu90FKcXuNY+ZRcgFcx+Wm8Nv9EGxMtm1b0LKXn3 G5kB8nhaWvIOWj9+7918MeRleRN0sfuG6FyMC3ZIONGqNxWyBXVUr67HqJ+qoafWkLB7 hCFfMmFjlUt/CmROnI8YhwVwYsILkkIJmZo5/IDHjO4Rsp9jrOOJozHQ13XkS+gRKeeM 4BAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2vYguTxknGE8Dx16795P40n1hyMI+4rqo7SoKdZ0n4M=; b=Xxr4zQwhMevbAjYDekthene5Ij0Q8apx7ZmDoup8B9rYL9iPnSUDV6jPwe5/G98j8D Zeu8SOo+kI6g8IRfh3dBnTqOJBFZT4tFgxPnSspCBAlAEWxHIJDvZyMezgaW+WqwOE9D knq9lzYX/ycscC5DNDhLf1EJ6xG4lm6DhRux1CzFvN7sMS5DXRQ20YO91oKIbqVCmq+O l5NtV/ShV3s0VJmgr3lFlp4A5fEEggOOKSFplmi1StHmIz62jbZQ4FHJslhgsKifuU1S Hq709TQYfuHH/y8DHEEk/AdOno0pXkqXS3RUvEFkISB8mpyklwO1wTe0baLBxWnxxCms 060A== X-Gm-Message-State: AOAM532HJrbckqDG8C5ByxwSBGW5HWFZhMVdWEthH1VG1IEDZuTbdodA KisczUn4+A2PsQGeLSrU7KGwbwa5Tsrac+x+tExrLA== X-Received: by 2002:aa7:868f:: with SMTP id d15mr5402182pfo.166.1592512294729; Thu, 18 Jun 2020 13:31:34 -0700 (PDT) MIME-Version: 1.0 References: <20200618123912.64762-1-vitor@massaru.org> In-Reply-To: <20200618123912.64762-1-vitor@massaru.org> From: Brendan Higgins Date: Thu, 18 Jun 2020 13:31:23 -0700 Message-ID: Subject: Re: [PATCH v2] kunit: fix KconfigParseError handling CC_VERSION_TEXT To: Vitor Massaru Iha Cc: KUnit Development , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 5:39 AM Vitor Massaru Iha wrote: > > Commit 8b59cd81dc5 ("kbuild: ensure full rebuild when the compiler > is updated") added the environment variable CC_VERSION_TEXT, > parse_from_string() doesn't expect a string in value field and this > causes the failure below: > > [iha@bbking linux]$ tools/testing/kunit/kunit.py run --timeout=60 > [00:20:12] Configuring KUnit Kernel ... > Generating .config ... > Traceback (most recent call last): > File "tools/testing/kunit/kunit.py", line 347, in > main(sys.argv[1:]) > File "tools/testing/kunit/kunit.py", line 257, in main > result = run_tests(linux, request) > File "tools/testing/kunit/kunit.py", line 134, in run_tests > config_result = config_tests(linux, config_request) > File "tools/testing/kunit/kunit.py", line 64, in config_tests > success = linux.build_reconfig(request.build_dir, request.make_options) > File "/home/iha/lkmp/linux/tools/testing/kunit/kunit_kernel.py", line 161, in build_reconfig > return self.build_config(build_dir, make_options) > File "/home/iha/lkmp/linux/tools/testing/kunit/kunit_kernel.py", line 145, in build_config > return self.validate_config(build_dir) > File "/home/iha/lkmp/linux/tools/testing/kunit/kunit_kernel.py", line 124, in validate_config > validated_kconfig.read_from_file(kconfig_path) > File "/home/iha/lkmp/linux/tools/testing/kunit/kunit_config.py", line 89, in read_from_file > self.parse_from_string(f.read()) > File "/home/iha/lkmp/linux/tools/testing/kunit/kunit_config.py", line 85, in parse_from_string > raise KconfigParseError('Failed to parse: ' + line) > kunit_config.KconfigParseError: Failed to parse: CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)" I am pretty there is already a fix out for this issue: https://patchwork.kernel.org/patch/11592313/ Can you confirm?