From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53D0DC33CAA for ; Thu, 23 Jan 2020 22:56:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EEBB24125 for ; Thu, 23 Jan 2020 22:56:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tplaEJ1v" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729596AbgAWW4z (ORCPT ); Thu, 23 Jan 2020 17:56:55 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43087 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729590AbgAWW4z (ORCPT ); Thu, 23 Jan 2020 17:56:55 -0500 Received: by mail-pg1-f195.google.com with SMTP id u131so2128367pgc.10 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=XvcW+ffFpyvOPmGTTCwyfPPVLcoSEGoV324P6H/HCvitrQBQyjCjibODjFhIHX2RD/ GBigRGWq5efwTA8EfD+0x4MIE8E64tjSMWtIitd3UIOkjVHHWHHpzlla20hfnZ0Ye677 rzv8Aas+bB9f9iGjptShz56VAaBDsh6h2jccwImKvCOE72KTDGVyVonR0p7bG3J/bgFK 7gCHM44oE7jxO1qHAZ7gVAGcrldQrus8Uwz87Ve3FqcJkxa46ZcOSY8spFh3Kby4A1RF Zowupkw4NEjrUPR622OzsjS/Uhnx49mNAxclGQ8XXCgzsq/tQclXhobnznSOdmeVU9+P ny0A== X-Gm-Message-State: APjAAAU9vU87VAgUJN2tt6/FGxJI5WQCfthR9GDwWouRbhCuG3LZzC8D U0DlsADjdldWKZ6L9O8u3zqI4onLHqOLiWnIXkusNA== X-Google-Smtp-Source: APXvYqyYSrlPKI5wQd9gqwUk5XMTQiSu85EU/bUZcbyAqDwHkHjIuhxEB+wv6Wrj3RCcUP6u/oi9MxoAR4RhwmZvvsg= 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-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@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.