Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2063315iob; Fri, 20 May 2022 00:34:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvbWgCbCPdaei6CdtyteHBYL5FEriO7X+gXyNlITqtya9vgxyILBxRCMQBQxW6cRUyR5jO X-Received: by 2002:a05:6a00:84e:b0:510:5fbc:7738 with SMTP id q14-20020a056a00084e00b005105fbc7738mr8993209pfk.86.1653032074711; Fri, 20 May 2022 00:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653032074; cv=none; d=google.com; s=arc-20160816; b=SePEnqZCTBhzDD0SqPckgt8NOMm+P+5nKohRwUBdsUB5Bk2XOp4ebAoKJOmpqeEng1 BStLXE5H8cRPR/oFb+RJ3YcA3rQv4MrYAv8EDFqPoz54F7E3ODT1zHVzpzYBYn+aVF3c PFY6qkXbD7EUA9oF64KALTdKRW7QuJFWwe8JcnKP8aIuZqDqgAltN92FvXaj5NDV0b/n 0naXAqFKKQro41o0tEXHpJquW51EBn09AXIdlqCL653LGDRfcTnOEnNP919FDz5C05z/ Xc3VQO0zTQz0L9Qogftb7EW0hY/MR+EuJVcOR8kmBIDVb8vsV4/y+Ljy02GfhVhndYwf ue6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aAt8WBvOnh+W/rgJf2mZuMlDZ6jyI8BWlcti1FFh8IE=; b=gkPzBCnKQRXyeH+KPy7uH32IHY8c+u3DZs5+rIn4dsZ1LqdpBoiQ/hFKiTIK4DgXu2 D22GpJ9pvYOtgZm2TsT5txXUALAQrM3aZ1tq6LW86Fwdik4NrfRRdrdZNFH29mbnRIDw aTXUwk0M677FCxiDIPiWwZPxSJjPTSiC5MymkBBptAl6E0S9pMKYBdOY1ewshJOdODyg xOnHq72ALx88TtTgFoAMChJfwAyU7P2xyY5b4jW0YOAOp8ZVa/YBAJ4lgYJw783P0/Zw SAJMOL0yz43Mduuwgo6YohgeNvVK6w7UDOU3NehxM7YXY+l+YIcaTb4S4GW4I5O1zBey mCQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="I3txd/N4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f32-20020a635560000000b003c642cc815csi9369168pgm.15.2022.05.20.00.34.20; Fri, 20 May 2022 00:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="I3txd/N4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238673AbiESNUW (ORCPT + 99 others); Thu, 19 May 2022 09:20:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238662AbiESNUS (ORCPT ); Thu, 19 May 2022 09:20:18 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4367C8BD3 for ; Thu, 19 May 2022 06:20:16 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id u3so7166818wrg.3 for ; Thu, 19 May 2022 06:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aAt8WBvOnh+W/rgJf2mZuMlDZ6jyI8BWlcti1FFh8IE=; b=I3txd/N4Pp+9vc7yIlOwdDF4J0p5uIoxJfSDH64ABzpa7U5z8DucLrdrI8ELLQWZqL logjn2wTQ+6QEW2ClkanU4NaEycCEWqXQQvQQyH5jM9Wx013w976dHKl3coqjEOgfO52 APcohYrlmKsiLMxRpCUqRAdVyT3QCgLICsj+0NZV99zn3QQS1dBkl/YhPW5AwWaunuGb P6rOF1vgY2CAEB7Uae48Cfd6r31VTRQloQb0E7w7j3OtnGlvZQ1sqbJBgEgkPBHbla9Q PBIIdjoxFcPDvDT/Y8ffNXeQqJglKL5yPnceSANeE7sVKWxt4kowr7ilCzHE7giNbVEG uePA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aAt8WBvOnh+W/rgJf2mZuMlDZ6jyI8BWlcti1FFh8IE=; b=XL8sIqLEPvsj+vXj52Y8bjbRE5zMWrbs5siBG/GM52LzNYEMnYeJ0rG/Z30ZES4Jp5 SnlhLqZGdjjn3CFJldUTC0HY+bo4Jt3gmKjmq0urDLTzPWbpePFZ1+y4JNBkT8P9LEWd ILDoHP9A1FX6AM5KLLyaRsPh+9OvpMw4FvgYMFQ6GS9Hj0lQFsZH+WsoVO80GBn+avXy blqQ8ir7NrJnNzaD15IngNGHvCX9AqIANRXHdIAlolVklbtwYRq9NjVPZOOQQSAN7P5Y d0mFOGBmiY9qswTXFu1+VJ4YnlG7HYyazZM3ND8OfPQVI2YxWu9nSJmQOPWLMZJnms+2 Qirg== X-Gm-Message-State: AOAM532t3JnLUlZvFUYhpjqGCwq/3o1ydEPnEo6RQiy+Tq7HPIYwno7o uILyvmDQzLd7MzYPbnYJSCH1//4E2dIEWkq4a+YtWA== X-Received: by 2002:a05:6000:1549:b0:20c:7183:439 with SMTP id 9-20020a056000154900b0020c71830439mr4086990wry.104.1652966415239; Thu, 19 May 2022 06:20:15 -0700 (PDT) MIME-Version: 1.0 References: <20220518170124.2849497-1-dlatypov@google.com> <20220518170124.2849497-2-dlatypov@google.com> In-Reply-To: <20220518170124.2849497-2-dlatypov@google.com> From: David Gow Date: Thu, 19 May 2022 21:20:03 +0800 Message-ID: Subject: Re: [PATCH 1/3] Documentation: kunit: fix example run_kunit func to allow spaces in args To: Daniel Latypov Cc: Brendan Higgins , Marco Elver , Linux Kernel Mailing List , kasan-dev , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000088fca05df5d3ce7" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000088fca05df5d3ce7 Content-Type: text/plain; charset="UTF-8" On Thu, May 19, 2022 at 1:01 AM Daniel Latypov wrote: > > Without the quoting, the example will mess up invocations like > $ run_kunit "Something with spaces" > > Note: this example isn't valid, but if ever a usecase arises where a > flag argument might have spaces in it, it'll break. > > Signed-off-by: Daniel Latypov > --- Looks correct to me, though I'm not a bash _expert_. Reviewed-by: David Gow -- David > Documentation/dev-tools/kunit/running_tips.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/dev-tools/kunit/running_tips.rst b/Documentation/dev-tools/kunit/running_tips.rst > index c36f6760087d..da8677c32aee 100644 > --- a/Documentation/dev-tools/kunit/running_tips.rst > +++ b/Documentation/dev-tools/kunit/running_tips.rst > @@ -15,7 +15,7 @@ It can be handy to create a bash function like: > .. code-block:: bash > > function run_kunit() { > - ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run $@ ) > + ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run "$@" ) > } > > .. note:: > -- > 2.36.1.124.g0e6072fb45-goog > --000000000000088fca05df5d3ce7 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPnwYJKoZIhvcNAQcCoIIPkDCCD4wCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz5MIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA3MjgwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFQxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSowKAYDVQQDEyFHbG9iYWxTaWduIEF0bGFz IFIzIFNNSU1FIENBIDIwMjAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvLe9xPU9W dpiHLAvX7kFnaFZPuJLey7LYaMO8P/xSngB9IN73mVc7YiLov12Fekdtn5kL8PjmDBEvTYmWsuQS 6VBo3vdlqqXZ0M9eMkjcKqijrmDRleudEoPDzTumwQ18VB/3I+vbN039HIaRQ5x+NHGiPHVfk6Rx c6KAbYceyeqqfuJEcq23vhTdium/Bf5hHqYUhuJwnBQ+dAUcFndUKMJrth6lHeoif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