Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp839853rwd; Thu, 15 Jun 2023 02:49:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7f1v2TIcY5er40aY+t75SffVBMLkqmvEnuw+etWklNhyUx41IslgHZbL6XCd3oE5mlFHT4 X-Received: by 2002:a05:6358:cc30:b0:127:f3e5:c2a with SMTP id gx48-20020a056358cc3000b00127f3e50c2amr11394574rwb.5.1686822579617; Thu, 15 Jun 2023 02:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686822579; cv=none; d=google.com; s=arc-20160816; b=Xdl7sLXV210xxScCES0eagpQGRH89RQwH40tgV+v7JWlbUdIriCMzlvTjgqL/q9gKR XVYLl46RbcBiI75GtZVPNcwi01cb4KT/GMYQm++M83VOcB0InvrYoX8y7Z+GtheGF5gm NUdsVSYDw78m9cS0VVU/piJjGVd4skAnt/R1Gstd4SBZOQWkv4rn88Pm0ZC6OK0WjdEL LcR3nSQ0k4W2q6eKE8M8XtagT6wxBmmPb0qI4kVe05bTpjiVeJq/cwe2kvN0cMFexHzs ULJdoApl4B4n6DuZdza19kCybqwgvNBXIt0st48t95MT4yl7whe3Mxu+NwAcq14aOkOl lrWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oGOHFXjoBS2ub7744MFzAfGB3y1RlKfr94cgOk8utvg=; b=TNoRt6CS2PlIDESdZZ+rz3FJiXxnE62o7qxr+tByXW11wUqwpSurH1KUNTVmqCrTV5 8gCzPVlmcEm1gR38/gel/yJX2VGrkrWKunUYxYitvvB8QTIHYUf3jptSbMeGkBHRAKYV gTpQfyOtPVcmOekkWrqcFa8wxNO/iKrS9BOMTXxTkSAnhiWPhTf8w4zN32SL62UJ+wxv gqhoFwWkjakINmhCKj2tnfwc4+mJ6TJ4nLEVY5pfhrDq5bxAWxrXaAmcsEysWXnWoH1y YVzBS9sVx+1kKlwaoNek7pab2y+QdaxCPd5dFPshqgEq7jBm9SNe0Q7wY9Ggu4Mjerht 1/uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bQPiUW2V; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a637e16000000b0054fd4d7d642si3230593pgc.4.2023.06.15.02.49.27; Thu, 15 Jun 2023 02:49:39 -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=@gmail.com header.s=20221208 header.b=bQPiUW2V; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239074AbjFOJXl (ORCPT + 99 others); Thu, 15 Jun 2023 05:23:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238918AbjFOJXi (ORCPT ); Thu, 15 Jun 2023 05:23:38 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6ED42130; Thu, 15 Jun 2023 02:23:36 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-75d46c7cd6cso268304885a.3; Thu, 15 Jun 2023 02:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686821016; x=1689413016; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oGOHFXjoBS2ub7744MFzAfGB3y1RlKfr94cgOk8utvg=; b=bQPiUW2V/29fzHAWymvAuQKmj6vXfz5zArXjocuKNgdfoFxWwTMHtWWS1g/dPGmOk9 gdnCT1uCVb+1TPiOdR0qq9Xp55gm3Kw4HgkiENLdyJ7Em6K1KJ56gxXpvgsUQyLNq9hH iRHuY2mIidQd/qDJsBLM0FfcS3GxlHfjBgvZa/zwYlokG3p8IZ9nGTQi/FWiMwiarjy3 rjXZVu71fjJjFrKCb9n7BsQc+43Pj4ZMEH0O1Kb23mLVDUQz36LbEcCldXeIWmrYPNp4 rNR5x2LPD5WKSr8vCsvMUGSl3NUds51A18JWFiHz6B0U1hBuYdtMcdL11Jg3SHP+d5SN hUCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686821016; x=1689413016; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oGOHFXjoBS2ub7744MFzAfGB3y1RlKfr94cgOk8utvg=; b=DfiI4ibTkC5j4MBf2+6Okb1E26d4j+sQcxQ16PZgg4i+9ZjDiRXu2gARnqpWl7gf7R yl8rzMBcmoO9ZdoSgmGSCpM7EOSAY6ByAJ9ZukZQ+oV4NoyyPICynTsNWJLzMhLbrO3Z FkRZgMVkU883nwe6LEoJAQFkBKOmV4jmV1n5GySs1YeTGF542euLkioNrmja6pYDy2ZD YkxSJEdsW9MIxe8c6aob1+gigew9PVPiiVswg7uxj+0sDC7Y2xCCaGn4oZMHfuuM9X0n SAtuqLcXfnKFKtb3xPNZsILyFjC8P3x4L+RIin4hClOSUvgFAjOPbbZjdBXQeXuBXfdv 0scQ== X-Gm-Message-State: AC+VfDxcpZ18cP534HkisP1HbHft0KUMQnq+eHOv0SERNRqdab+fQm3V 7AbZo0aIgruDjUF51mNszbt/KBnUEdNcTVmimyc= X-Received: by 2002:a05:622a:589:b0:3f9:d70f:ff6b with SMTP id c9-20020a05622a058900b003f9d70fff6bmr5547763qtb.56.1686821015825; Thu, 15 Jun 2023 02:23:35 -0700 (PDT) MIME-Version: 1.0 References: <20230614180837.630180-1-ojeda@kernel.org> <20230614180837.630180-6-ojeda@kernel.org> <49dad8fe-c509-6c43-559e-13a82563d3d0@gmail.com> In-Reply-To: <49dad8fe-c509-6c43-559e-13a82563d3d0@gmail.com> From: Miguel Ojeda Date: Thu, 15 Jun 2023 11:23:24 +0200 Message-ID: Subject: Re: [PATCH 5/6] rust: support running Rust documentation tests as KUnit ones To: Martin Rodriguez Reboredo Cc: Miguel Ojeda , David Gow , Brendan Higgins , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Andreas Hindborg , Philip Li , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Jun 15, 2023 at 5:52=E2=80=AFAM Martin Rodriguez Reboredo wrote: > > I can't remember that if this panic it will mention the path on it. > Though if it does, then use something more explicit than > `.unwrap()`. It doesn't print it, and I am happy to make things more explicit, but in which case(s) do you see it failing? > Please do not use unwrap here, one can easily create a path that > it's not compliant under `rust/test/doctests/kernel` and get no > clue about where this script has failed. Use `.expect()` or > something else instead. The folder is removed every time, so that should not happen I think. Yes, you can still hack things and call the script manually, but I wouldn't call that "easily". Nevertheless, I am happy to change it if we think there is a risk, e.g. `rustdoc` changing the pattern (though we pin the version so far). Thanks for taking a look Martin! Cheers, Miguel