Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp662851iob; Wed, 18 May 2022 10:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy127gWosfUVPBGh8G1UghG0r9lbmi2gBNQy0o+Hvh51M6pq/l3JEqNyBQrXnncrwYA5dSc X-Received: by 2002:a65:48c5:0:b0:3c5:fe30:75dd with SMTP id o5-20020a6548c5000000b003c5fe3075ddmr342960pgs.269.1652893609627; Wed, 18 May 2022 10:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652893609; cv=none; d=google.com; s=arc-20160816; b=Ehr6QD88OA11kKJ8tuJ3Tt7VXy69Ob+yW7xFPXeshLQfA7SJ5qJ7AMN96FNLdHAyiF 16NcdmHMCwlrdclwnsIYHeMw2f2V9Itk5ZYQdGDguqtGSMCHKmEbs8skR2pHfPH8aX53 zonC+0pe7vdye89ad5jFCkF0INCOBHTa/1ksN8u/4HEF5sgN4R3y9DV9RFujNmc+r6um 0RZ74adaZQlJfbiqVbBpvT6nfbhoYKMqQ0GyKXikvNDdl+hdrQZBUXC1JIclW97MBo4B ecXBo77lzcAvPZa0OF9rrbcBeylPqO8qQjouDOCnSeZW1R7hkyZmrmyPOVV/Uf+JS5M0 o5ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=21gji5A7fyf+LOH7W7vX2Ngr8AGXxxWBQWpGLTWRGhA=; b=yM3dw0fqCf0vcIKXDjtQh2UFZWPp50/9waKRazJfDAfPINkSuwgzCNktQ7x1WMF9Ef 6f/7Bn7lKJ7/BYbrT2BIEfd/b9s21fT2WHKDbBk/om0Pcb69hLrWAzna6PDEL08wGQeM 1hjmHR0ly95gY16fVNBQiRtO5QVYOS44BDUa9RpZbf9mi8/g4bGf4lC5rjDOGZasdtyT 9+2RsU/BM4QJJORR2KHDgdecJXKTBAI5HSUIZZGS+cFvD+IUBGTgtxrGNsc8IEzGUnXv f8ZWBobdLFpwVaoDdXHO4YTI6Vg9aHlb9VDv1psk0FgF2/MnsfiJEMYlHfux1TYfLQz9 4TZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GTzkF8O5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w9-20020a170902e88900b0015ea8b56188si3700967plg.56.2022.05.18.10.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 10:06:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GTzkF8O5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 974451900D5; Wed, 18 May 2022 10:02:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240685AbiERRBr (ORCPT + 99 others); Wed, 18 May 2022 13:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240596AbiERRBn (ORCPT ); Wed, 18 May 2022 13:01:43 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 177DC56FA0 for ; Wed, 18 May 2022 10:01:39 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id c205-20020a254ed6000000b0064d5bd93479so2211166ybb.17 for ; Wed, 18 May 2022 10:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=21gji5A7fyf+LOH7W7vX2Ngr8AGXxxWBQWpGLTWRGhA=; b=GTzkF8O5vkR1Lt+Fnw7LR/ngt2HqSyPnypaoqbXSyP+l0zND+UX2I0KppXnl1YZi6I 03baXp65KNEbOp+bqVWwVIBpZpkzPzYSrsYgzkjBGT3tSZ1qmttFgx3AwVGDCbEdJ8Nk TRVb/htkvdsqFa/k2tSEAefow55INRy1eJMxSjlVtQrpBLjC1y3k6B15D8J+y15khDS0 3sZ/3NciSAL4YcN5zUE2nW3wbrdeS0l7Y3vSQwU/XD6RNkKP3vR2rqYFzdno8wUK2PBK 9BCc2PRT+x06Z+qc/Tx+Db/tL9sxXLOz5VyT8X+kLlGTQ3l0efVDXJKBgpDhevgDT24b ocEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=21gji5A7fyf+LOH7W7vX2Ngr8AGXxxWBQWpGLTWRGhA=; b=pXuXUKwhuBAPTzjpe83s6h1ItLjPcyAm9fdiYyya0mVMuORzOhxiOl5RXFt4c7/J+r KfjwSTRvljpRZ1BY3vz92laS9F+9FGvJZI9D6gubrisdZ/GBPyr32L5t4P3APRcWy2JO WQMTZ5BcQdAprPU2Xxc5MOWyyhQ4iicJDpj67yPtBmBIOJ0iA5L75kMNQa1NAsTCBUMx wSyt/uDek1qVv+xjYqeef8CofX1cpkBZfD7y5wqWDPU93FWxF+S4gQgMiyIuM+31ZGmo j1nZuRB7mZu1kcyXFpJs0dsdXddtEsNmnozFW4NPtsN5cVh/iW7OBWL2kL3ldwlVqec9 mEEQ== X-Gm-Message-State: AOAM531A6ofEhmLHzDC1Iz4DwthdGW4QNbz6ZcHwR2kIYFHYBRG9CNEA ZO9Px/xqjYHKX3AIFWUF4X/GiWJadCSCrw== X-Received: from dlatypov.svl.corp.google.com ([2620:15c:2cd:202:a94f:2cb3:f298:ec1b]) (user=dlatypov job=sendgmr) by 2002:a81:2f8c:0:b0:2fe:ed42:21ca with SMTP id v134-20020a812f8c000000b002feed4221camr399767ywv.120.1652893298194; Wed, 18 May 2022 10:01:38 -0700 (PDT) Date: Wed, 18 May 2022 10:01:22 -0700 In-Reply-To: <20220518170124.2849497-1-dlatypov@google.com> Message-Id: <20220518170124.2849497-2-dlatypov@google.com> Mime-Version: 1.0 References: <20220518170124.2849497-1-dlatypov@google.com> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog Subject: [PATCH 1/3] Documentation: kunit: fix example run_kunit func to allow spaces in args From: Daniel Latypov To: brendanhiggins@google.com, davidgow@google.com Cc: elver@google.com, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org, Daniel Latypov Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 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 --- 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