Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1411225ybd; Wed, 26 Jun 2019 17:25:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8I2HCkFtWItVGzhqz8fI3NnMVvuueHafsfWZOu1dxHGuHPZzsRQUlZcNJEQib9KQ2CjQO X-Received: by 2002:a17:90a:a410:: with SMTP id y16mr2356620pjp.62.1561595118900; Wed, 26 Jun 2019 17:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561595118; cv=none; d=google.com; s=arc-20160816; b=hVjrYvQdhsf+NyfKI2L7kiLLVt7IbH72TGWrIZDAqx56x/P4dYQDt0lDKhV6D4/Arl HyruVFZYAjsmMObogiEhN1CjDbda/8XDzFhET5EU5bkorbDbSmhpBOa+Gio4hxg99cF5 F727JelXrPcd4sJuDBRQepQkKM74vJNsspMBcJ5hQWOqIZMeBwSEV/JuscNZTmj9AaeX 8RY2u1I6jRcnw9wPLIbQVOG/OKsCsqfzuUElOVAmcWbV3SDOhKCQQaWvsZp0gnTrY1SP HTLvKQZ8aOSO/4DZokp1t5hqHNlXGiKz5h/C5xRQbnjCZZazvD3YJaCW9O1fvSjlAe0G 3tJA== 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=c34/FfI7PALcZVh0MK4YlFiWvnY7m44Qb8oCZcTiVbU=; b=0zqu1PewzPXZFYifPA3tiAaB2IUIquVYrTVVjGkyy6yi2G0TjT11wwIZrUjGcerOX1 tRNVTLJzvquC7mY3P5DUaOchCEV1Sp4W2Um0bL6HEMQi0hl0y7LtJEOdclKpeslChljG xI8RCJ2/IM92rH8SLhLFGS7Df3MspydwX0jT0XQ+xWJvbcaC5WMiRZu2n8G0Xl/U4cRm ab0/d9k2yBQlsGlDkR1OrE3O4tg4jHW3d1kZZepKyrd1jWJQYU+/zWNB5EpsGVBtwMbS 45w3SWTXwJBuEq6mlIb5GqFB0aPrtMxu3bHNnjZd/zwxmBjenn1UUxmxzANwtI5JE+Cp zV5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=a1r7b0eQ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18si3405155pjp.36.2019.06.26.17.25.02; Wed, 26 Jun 2019 17:25:18 -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=@google.com header.s=20161025 header.b=a1r7b0eQ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbfF0AXZ (ORCPT + 99 others); Wed, 26 Jun 2019 20:23:25 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38707 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbfF0AXZ (ORCPT ); Wed, 26 Jun 2019 20:23:25 -0400 Received: by mail-pl1-f195.google.com with SMTP id g4so246635plb.5 for ; Wed, 26 Jun 2019 17:23:24 -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=c34/FfI7PALcZVh0MK4YlFiWvnY7m44Qb8oCZcTiVbU=; b=a1r7b0eQqi65SnqqxyoyNoD4dz3PJJz11oTPJDYx1ctiFPDiwwrUHcLazOdtvx2h+b BJ557GOrC/erbl4AklySqzJS15SQHRCyi1pl5V+Ls9UzeK+ybM4aUzx/S+y9D7ra9gXL ud7lUYI/Zqb2M3pihkmgYamKJ46DHL/UUeQ91qNrgnYGOngk+Ky+30mJQ2BAC1N4CLmf 9YUjsBmnOgUwCj1x8uLgqFqywqoB2YH5RUIgldau68pKxTutIfleZKg6l9x3MWTSKJaB ouNqg9FBjBvdFyIKXW5If/Gp0dxolKfdIn0hpcE+lOOFMC9WXHkJlNZBl9+xdWTdckpr zuaA== 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=c34/FfI7PALcZVh0MK4YlFiWvnY7m44Qb8oCZcTiVbU=; b=bifbDGRQhKKSeuPgjpXfB4Ut94icMsDyge1fO2MesBkaVCyVjtcoPdT9o4RY6IrlRg /5+ZZRW7DFiml/QQtsGPK+3C3E7MwOHOsh3vz1GPt2BnMuYO7tILp3m6vxkImRu6kQi+ CQO8ikfIllaIIyWBuTZ57z2eg6nFPSHBy2OHuGtTl0snMTXtyp/XmxO9A45mbvU2hjq8 99XWw31zfCnJbAG1gYgO7juj2Td/eqc/OPO6JdeKKf2U6W19L4pv01QWZBHEhuZchlC2 JzmJUNy914X+Fh5MP+tkhKdq4a5voaHqWkiFZkacRq2lPLdDNwhg9aocBm9fVmcHD9bP paVA== X-Gm-Message-State: APjAAAX0dWv7N9qEkLYeOQ6lU8bbIQK1stvLjWg1BbrDW+ob9f8nR5BO bfoMbAukUznEmGCI1KwunQsSWIzrWj11qNxgVzUPqw== X-Received: by 2002:a17:902:29e6:: with SMTP id h93mr950785plb.297.1561595003889; Wed, 26 Jun 2019 17:23:23 -0700 (PDT) MIME-Version: 1.0 References: <20190617082613.109131-1-brendanhiggins@google.com> <20190617082613.109131-14-brendanhiggins@google.com> <20190626000150.GT19023@42.do-not-panic.com> <20190626220350.GA19023@42.do-not-panic.com> In-Reply-To: <20190626220350.GA19023@42.do-not-panic.com> From: Brendan Higgins Date: Wed, 26 Jun 2019 17:23:12 -0700 Message-ID: Subject: Re: [PATCH v5 13/18] kunit: tool: add Python wrappers for running KUnit tests To: Luis Chamberlain Cc: Frank Rowand , Greg KH , Josh Poimboeuf , Kees Cook , Kieran Bingham , Peter Zijlstra , Rob Herring , Stephen Boyd , shuah , "Theodore Ts'o" , Masahiro Yamada , devicetree , dri-devel , kunit-dev@googlegroups.com, "open list:DOCUMENTATION" , linux-fsdevel@vger.kernel.org, linux-kbuild , Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , linux-nvdimm , linux-um@lists.infradead.org, Sasha Levin , "Bird, Timothy" , Amir Goldstein , Dan Carpenter , Daniel Vetter , Jeff Dike , Joel Stanley , Julia Lawall , Kevin Hilman , Knut Omang , Logan Gunthorpe , Michael Ellerman , Petr Mladek , Randy Dunlap , Richard Weinberger , David Rientjes , Steven Rostedt , wfg@linux.intel.com, Felix Guo 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 Wed, Jun 26, 2019 at 3:03 PM Luis Chamberlain wrote: > > On Wed, Jun 26, 2019 at 01:02:55AM -0700, Brendan Higgins wrote: > > On Tue, Jun 25, 2019 at 5:01 PM Luis Chamberlain wrote: > > > > > > On Mon, Jun 17, 2019 at 01:26:08AM -0700, Brendan Higgins wrote: > > > > create mode 100644 tools/testing/kunit/test_data/test_is_test_passed-all_passed.log > > > > create mode 100644 tools/testing/kunit/test_data/test_is_test_passed-crash.log > > > > create mode 100644 tools/testing/kunit/test_data/test_is_test_passed-failure.log > > > > create mode 100644 tools/testing/kunit/test_data/test_is_test_passed-no_tests_run.log > > > > create mode 100644 tools/testing/kunit/test_data/test_output_isolated_correctly.log > > > > create mode 100644 tools/testing/kunit/test_data/test_read_from_file.kconfig > > > > > > Why are these being added upstream? The commit log does not explain > > > this. > > > > Oh sorry, those are for testing purposes. I thought that was clear > > from being in the test_data directory. I will reference it in the > > commit log in the next revision. > > Still, I don't get it. They seem to be results from a prior run. Why do > we need them for testing purposes? Those logs are the raw output from UML with KUnit installed. They are for testing kunit_tool, the Python scripts added in this commit. One of the things that kunit_tool does is parses the results output by UML, extracts the KUnit data, and presents it in a user friendly manner. I added these logs so I could test that kunit_tool parses certain kinds of output correctly. For example, I want to know that it parses a test failure correctly and includes the appropriate context. So I have a log from a unit test that failed, and I have a test (a Python test that is also in this commit) that tests whether kunit_tool can parse the log correctly. Does that make sense?