Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2133035ybh; Fri, 13 Mar 2020 13:25:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsAwgzAPC2L6EOjrzTnYXmjRPvJQV019d63EmPOOlOD8srzugdgNyBQIp1QQIJPwIlR6oR8 X-Received: by 2002:aca:5109:: with SMTP id f9mr8179989oib.14.1584131134472; Fri, 13 Mar 2020 13:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584131134; cv=none; d=google.com; s=arc-20160816; b=ppMRcZu4QsdcT4B6GgO3d/uWluoEAfHeOyEXTU6btfRd6Qypb73xJd3VRyRDGhipw3 U/LBzQjfP0TIF2qWvbUYdm83s3KHegJ1YQozG6UKMHfh/toV7Xg8dwu55t/P4PQKkcAl vEyDremNKYzksicZ6HF6EosPdTKLewAvhA1n2vrZGAIbuXGJ/iKU1pFKHP0zlfgWYExe b8z7oM+QW6Nnl0duILvQJkEqQ6v7w5E6stL+pp+z4bsFIOd02srl6kFdDt7bZoXdSuTp UnZ036RnlMeBYOgSNv/QZH2GH1bBhBn4asLKlJYXQ2kCmboVAr8a2z0Fnt4rJ4sPdHRt hCyw== 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:dkim-signature; bh=UUB7w/mgnPj/IW+YBLbZ/DsyVTLqt8+l8Zmpcoto9wo=; b=x+v1c6MlptoEQWYSfM5U77O/9ON7lMHuBA4jQFhpWkS+htPCTUYkPI+QAWIEczyr8n Dy2BJlAz+OM/rVRiUZXuWlWUb3jtbEDtaoQAB5fktzBTcl0vxqQuuo2kuotKp6Ll8f3q s6QuA6Izoye7S7swB5uorgCA0BZzTm/ON5jbtX4iLHTFLoS1zdGUkEfQse7knNyB6MKN Rvk4HV5WR2gHINlwdh42v4V/EFlPG7blDyyZQcR6uCtb/pv4X2p9HKGGLz81F8w1H/k+ +G0I7rZfWPf4Gcl6hQUEYQjkRcjOy1SIPdiMT5AKj+4IOP44hHIi2ShCGwP3nQ4dIMTq KExw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="A/GfMUp5"; 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=pass (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 z2si4603276oix.100.2020.03.13.13.24.44; Fri, 13 Mar 2020 13:25:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b="A/GfMUp5"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727210AbgCMUWN (ORCPT + 99 others); Fri, 13 Mar 2020 16:22:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:47088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbgCMUWN (ORCPT ); Fri, 13 Mar 2020 16:22:13 -0400 Received: from [192.168.1.112] (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 mail.kernel.org (Postfix) with ESMTPSA id 851472074D; Fri, 13 Mar 2020 20:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584130932; bh=H+FHiu5LeQLomYOQnyUDjawefKb1s84kHWofbZe/vO8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=A/GfMUp5yVhkxaqCnB4roSCiMSzNGIeviJvl81OxxvITqnF5NB8vv2fYIZ+1/gd73 qcyTruHofRExTtWou6mfRmzviF+3DXRGuvpcYMdjgB7IYcf8I0LfPcwNkVomB/k8p+ unwTQAqlziKurwjBO1+seHDied5ozItFZTW8KVJk= Subject: Re: [PATCH v2 1/2] kunit: kunit_parser: make parser more robust To: Brendan Higgins , Heidi Fahim Cc: Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , shuah References: <20200305200409.239406-1-heidifahim@google.com> From: shuah Message-ID: Date: Fri, 13 Mar 2020 14:22:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 3/5/20 2:25 PM, Brendan Higgins wrote: > On Thu, Mar 5, 2020 at 12:04 PM Heidi Fahim wrote: >> >> Previously, kunit_parser did not properly handle kunit TAP output that >> - had any prefixes (generated from different configs e.g. >> CONFIG_PRINTK_TIME) >> - had unrelated kernel output mixed in the middle of >> it, which has shown up when testing with allyesconfig >> To remove prefixes, the parser looks for the first line that includes >> TAP output, "TAP version 14". It then determines the length of the >> string before this sequence, and strips that number of characters off >> the beginning of the following lines until the last KUnit output line is >> reached. >> These fixes have been tested with additional tests in the >> KUnitParseTest and their associated logs have also been added. >> >> Signed-off-by: Heidi Fahim > > Reviewed-by: Brendan Higgins > Heidi and Brendan, git apply is throwing away formatting in tools/testing/kunit/test_data/test_config_printk_time.log Applying: kunit: kunit_parser: make parser more robust .git/rebase-apply/patch:396: space before tab in indent. # Subtest: kunit-resource-test .git/rebase-apply/patch:397: space before tab in indent. 1..5 .git/rebase-apply/patch:398: space before tab in indent. ok 1 - kunit_resource_test_init_resources .git/rebase-apply/patch:399: space before tab in indent. ok 2 - kunit_resource_test_alloc_resource .git/rebase-apply/patch:400: space before tab in indent. ok 3 - kunit_resource_test_destroy_resource warning: squelched 11 whitespace errors warning: 16 lines add whitespace errors. Can you fix this and resend patches. If apply this as is, all the formatting you have in there goes away. This is what gets applied. [ 0.060000] TAP version 14 [ 0.060000] # Subtest: kunit-resource-test [ 0.060000] 1..5 [ 0.060000] ok 1 - kunit_resource_test_init_resources [ 0.060000] ok 2 - kunit_resource_test_alloc_resource [ 0.060000] ok 3 - kunit_resource_test_destroy_resource [ 0.060000] ok 4 - kunit_resource_test_cleanup_resources [ 0.060000] ok 5 - kunit_resource_test_proper_free_ordering [ 0.060000] ok 1 - kunit-resource-test [ 0.060000] # Subtest: kunit-try-catch-test [ 0.060000] 1..2 [ 0.060000] ok 1 - kunit_test_try_catch_successful_try_no_catch [ 0.060000] ok 2 - kunit_test_try_catch_unsuccessful_try_does_catch [ 0.060000] ok 2 - kunit-try-catch-test [ 0.060000] # Subtest: string-stream-test [ 0.060000] 1..3 [ 0.060000] ok 1 - string_stream_test_empty_on_creation [ 0.060000] ok 2 - string_stream_test_not_empty_after_add [ 0.060000] ok 3 - string_stream_test_get_string [ 0.060000] ok 3 - string-stream-test [ 0.060000] List of all partitions: [ 0.060000] No filesystem could mount root, tried: thanks, -- Shuah