Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1162979ybl; Thu, 23 Jan 2020 14:58:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzifs3Tv8RRjVo3PH3538s0tRqOhlzs4JOLNz4aM7W4PO8F3H9d5DLBhHOF2K9F8AOuUNB7 X-Received: by 2002:a05:6808:907:: with SMTP id w7mr170562oih.137.1579820308432; Thu, 23 Jan 2020 14:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579820308; cv=none; d=google.com; s=arc-20160816; b=MsBpkOhG2gf7v2XbPjWOO6o2eokehlmxCqk5JqDgHA8gPts8Ot1nYOZmCQbbo+4F22 id5kYjfSyMex5RA462i7sBwqY6aYJcmL4J6Yufe/2IsAPcMd/Ju6m4b9xhiyxUxd/iX4 jxf3Fq7qbwhSpnkSkhRA623KJL6JDuiMw7FKQzGThBfeBtkxMyyM+8i8iI5vx3nx9FeK v8vYjSuyFD8sJIhjPc/ON6kU8J7cG1bGjQsnf83nkh/9rrc/0zqJMtT/quTDGt61NIae r4B3pZY8jM4L2BPeXEATXsC5gqu0tg8b9n3qb9WJNU/jJA9t2tZPuajoP1GVK1WJU8WE EgiA== 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=KDyx4Ql8/Qn5VAoH2DVKut2V/mwsU6XM8Sb1jgu629k=; b=y3XRKlEXBz1aC5bm0YHYJBcy8EIUZljQWjupS7miN9BMyO035ouXDQ4fzsjOLU20yS PXphlK+tNlnUohp2mp2Zaszh8Wocbo7p9WoodFAmoDg5Y1LkapcZ5Py+yAxxd2b7rL/O kq+Jfg2xrkdssbosaaN76+7kKl+sshcDAmbpU05JMMfCaFvyIVsMQxHaVe66/vL5SyJq eDcS/IaziTNHubcdf7q9U+JZp3BeJGi8gdGRg1kbQhV3hw81jD2WkgwV0JEkF3hC5GBI t41et2ILrui5quM4wJbFSIG3LMOpZDDbT+s4dIlCl2utS7cXPbTEUvWO6bc5M9QRsHFD ghTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tplaEJ1v; 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 a22si498081oia.15.2020.01.23.14.58.15; Thu, 23 Jan 2020 14:58:28 -0800 (PST) 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=tplaEJ1v; 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 S1729605AbgAWW4z (ORCPT + 99 others); Thu, 23 Jan 2020 17:56:55 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45786 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729149AbgAWW4z (ORCPT ); Thu, 23 Jan 2020 17:56:55 -0500 Received: by mail-pg1-f196.google.com with SMTP id b9so2125427pgk.12 for ; Thu, 23 Jan 2020 14:56:55 -0800 (PST) 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=KDyx4Ql8/Qn5VAoH2DVKut2V/mwsU6XM8Sb1jgu629k=; b=tplaEJ1vep6oo8dV1s9BOPDmRx7jCDz9+N3FKj3myXdVaRz6YvIrUsNyv5jg9YToT/ pZ5HtpJWhlSL3p7j8WnO4gS9eQAO7GalnteaC+BCkCqtvuiTfGTnjccLM7HpIWCB1InI LaOSyoyDBgKX3T9+24hjMAV1y4lFY3c6TVIa7kolWbSK0ik4lMyaCXYVWkN6X0j07Ble If0fzVssdVXXYCan4YXZzy2cxyeVShgHfimuuTkLEQpPCk2agA1PzCsuD35FoTZCUhoW xOKM70JQm9yXnc1Y7PNVpG78ph9b1lMuHOBlFq58zE7QvCgLLkS63be/X5VyD+GE5w3g KkVQ== 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=KDyx4Ql8/Qn5VAoH2DVKut2V/mwsU6XM8Sb1jgu629k=; b=RG3+dq8W0e7YwhsP6f3PmBQ2n8yMV+vXJH+r1Q/vFddwCzAI5gnXH0CzQDTsBh1bN7 +tSjd+mbPBl+qS/0VTuJtjBFg0K2Hs1NJ+9WmrVdF8RZB8MkqYDnBr+ffLzT+6yR2uCr jQErDqpbML6uoFSp1aZYHAaOfhdKoTN9FQ5Zma5cY9Rvb/U3bxV77HycLQ2lzUHu8hQl PcZ/rCeLlJQDNyOX2h9DpTarnD71uWWokU45/S3ORA+bkUIZJRgkNChkWDR6U/jHbL6p lzIK0DuS3cdOiCPDj7iAjDJkQVoLxgkwWca242uS78psfv8A/dGxmY92aeOKU52Lo4dW dY/A== X-Gm-Message-State: APjAAAWZ5sb5+FiyCxpNcSFsV+9f5O8gXLrWa79YDbAcjEZlmMt3WCXT YJprJTDtWYSoywOZHeqCktzydVVyqjfQFZF/xPWypw== X-Received: by 2002:a63:597:: with SMTP id 145mr705968pgf.384.1579820214473; Thu, 23 Jan 2020 14:56:54 -0800 (PST) MIME-Version: 1.0 References: <20191216220555.245089-1-brendanhiggins@google.com> <20191216220555.245089-7-brendanhiggins@google.com> <20191217080653.B672B2082E@mail.kernel.org> In-Reply-To: <20191217080653.B672B2082E@mail.kernel.org> From: Brendan Higgins Date: Thu, 23 Jan 2020 14:56:43 -0800 Message-ID: Subject: Re: [RFC v1 6/6] kunit: Add 'kunit_shutdown' option To: Stephen Boyd Cc: Andrew Morton , Alan Maguire , Anton Ivanov , Arnd Bergmann , David Gow , Jeff Dike , Kees Cook , Richard Weinberger , rppt@linux.ibm.com, Shuah Khan , Iurii Zaikin , Greg KH , Logan Gunthorpe , Luis Chamberlain , Knut Omang , linux-um , linux-arch@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List 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 Tue, Dec 17, 2019 at 12:06 AM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-12-16 14:05:55) > > From: David Gow > > > > Add a new kernel command-line option, 'kunit_shutdown', which allows the > > user to specify that the kernel poweroff, halt, or reboot after > > completing all KUnit tests; this is very handy for running KUnit tests > > on UML or a VM so that the UML/VM process exits cleanly immediately > > after running all tests without needing a special initramfs. > > > > Signed-off-by: David Gow > > Signed-off-by: Brendan Higgins > > --- > > lib/kunit/executor.c | 18 ++++++++++++++++++ > > tools/testing/kunit/kunit_kernel.py | 2 +- > > tools/testing/kunit/kunit_parser.py | 2 +- > > 3 files changed, 20 insertions(+), 2 deletions(-) > > Can you document it in Documentation/admin-guide/kernel-parameters.txt ? Ah, yes. That would be a good idea. Sorry, I just expected to be shouted at loudly for doing this, and didn't want to expend the effort until some people told me that they didn't hate the idea.