Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1645633ybt; Thu, 18 Jun 2020 13:45:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVwWMaFS209VkeIya7DLyW0C7dVDA/8IhilqUwnXFY0Iijg46jQBUFU2QwIGSab2vigutx X-Received: by 2002:aa7:c69a:: with SMTP id n26mr89000edq.2.1592513133173; Thu, 18 Jun 2020 13:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592513133; cv=none; d=google.com; s=arc-20160816; b=0j612C4MBvzcKfyHj8/QeqQKo7e4SWRX5AIab45mTVL67Kp4gbavT3xOBp+uTCZrcU Oil/c/eHel4Y+bMO8AMPOxgg+yBbV87vQiJ/JG6OhEozzTehzXb2JI8WSv7VFqSi1Fvd YP/rsez3cj4cYU09MrYp7u1GtToB5TRVhlgrITkYeK2YJSHWFhK9tBUEH2DFDLabHAc6 o7P8652kzaFGo1qcO375pXsx6uD8ERQXODe1bZbxJ7yJXqlhau3fek3m8ZM0xbGlGzr4 AP6uMHbGbvb4O4FxaZuGOqhKjIOVF9XbAI3KqNJ5fAR1YU1HLrqOnwwAtKYBJHpJ2AmG eZLA== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ZYzhuBZS9rkuOZVHOQsEAGRBl1qfIjePfyvKHgBh4OM=; b=ViFkdBnwf4O/oN9TpnJLZi/D9DNqpuoMwhwj0HQcHxg1+dmgD9m0ndT7tEUkHu4DS6 81MaDxS9uiziRGbWbmWmld02U0cZDJwXYpt2GQjegSGZOvq8GEf0PUKVGoJZG0y3THRc b8tiVrLgVI9Ew6HuXry8kqGB5dtnc/1l6l+/35JTP4w/8V4KhDATnVPmJYNpFLfW6jFR V+irN/VLuPeplXOEMJ2P/E2Hj0+6/aMNJetsk/mM/gImS29pxyi+0thwtSuowFW7Fk4m dtpsIkEz5TPUsHyKp/ocJcquEeaUI6bFlnGGfxYNqIhScmmFwqHF9gwDTc2Ylu0zN6rW U0Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=yR3Onkl6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si2540727edr.270.2020.06.18.13.45.06; Thu, 18 Jun 2020 13:45:33 -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=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=yR3Onkl6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729896AbgFRUg5 (ORCPT + 99 others); Thu, 18 Jun 2020 16:36:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbgFRUgy (ORCPT ); Thu, 18 Jun 2020 16:36:54 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23EC7C0613EE for ; Thu, 18 Jun 2020 13:36:54 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id fc4so3454253qvb.1 for ; Thu, 18 Jun 2020 13:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=ZYzhuBZS9rkuOZVHOQsEAGRBl1qfIjePfyvKHgBh4OM=; b=yR3Onkl6GAedASEnIYKoSQdDDq55u7rSUAdcrerC2I36aFDVFgdQNmz+YntLg/KJqk guHQb1gluVExpam6Acdgf6Zzo7DPus6FRSprCfROwH6+xLA+pSrEYCmdv1dHMVHst9nm PI0y26KMs8Ab1SbheWZRB02JwyM6R8RIE7QdZw/rsNEd8PqSKCBl9Qe90ETW0a580PJE /DSgLzBToRolw9uCRUEEhrLWhcHxQQNNsS4mbJuLERBZ6bmlRxeJyXllNzXe2383JmbC Kl8C53X0TypFOppXtnFMHzl5uMN4/Wd9Ojoqmpkg6T8UaEy++Eph5rDTwIBANMfJxOcA Ti7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ZYzhuBZS9rkuOZVHOQsEAGRBl1qfIjePfyvKHgBh4OM=; b=EakMSx4Okup/A4J8ozeO/pDGtjGHbvuJC1zMBcuELvqwiqJClnYbLMKrYXyQfFVUtM mwQCD6n6UHqF7hWoAWcmzj2HG5jgF0+PqvRgULRL8PsoexUtLsgywg5INEDdftsZ52ee mBPb0+1e0RuyunvXEleFgvI+vv60HCwtieuhfMY4N1YdHvYLImRHbRbVlqK4bHOP+J3C uuvhbw8QaALCxXFuK/c96iIQYF7M57E0sf2NTK/sLivl7K/JtabL22/m97QUekcZ4b6F uyGtzJDEn+LDKQ3ILmpwdTqyejwIj7tUNA9fbDCZVKwOHtvvqKbtBuAoo32T4EPESb5F PoPg== X-Gm-Message-State: AOAM530cIOXvWLZvsTQHQyOoFD7jTVCN8+Um60RN7nndAe6mXGRtBwzT 9mlehp91GBKLtoWZy6jPpoYCxA== X-Received: by 2002:a05:6214:1925:: with SMTP id es5mr5692284qvb.165.1592512613158; Thu, 18 Jun 2020 13:36:53 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id k26sm4684548qtk.55.2020.06.18.13.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 13:36:52 -0700 (PDT) Message-ID: <5d00735a16728de5547c87e2cf4c29c23a1f0720.camel@massaru.org> Subject: Re: [PATCH] kunit: fix KconfigParseError by ignoring CC_VERSION_TEXT From: Vitor Massaru Iha To: Brendan Higgins Cc: KUnit Development , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org Date: Thu, 18 Jun 2020 17:36:50 -0300 In-Reply-To: References: <20200618035736.245566-1-vitor@massaru.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 (3.36.3-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-06-18 at 13:29 -0700, Brendan Higgins wrote: > On Wed, Jun 17, 2020 at 8:57 PM 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 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? Sure, thanks!