From patchwork Tue Jun 30 15:03:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denton Liu X-Patchwork-Id: 11634263 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7D1214E3 for ; Tue, 30 Jun 2020 15:03:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C02D120759 for ; Tue, 30 Jun 2020 15:03:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cUcNGf5x" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389232AbgF3PDe (ORCPT ); Tue, 30 Jun 2020 11:03:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731592AbgF3PDc (ORCPT ); Tue, 30 Jun 2020 11:03:32 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D21C061755 for ; Tue, 30 Jun 2020 08:03:32 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id 145so16376201qke.9 for ; Tue, 30 Jun 2020 08:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=sgo7WNu2r3te8+uwmFrMuip8L4ZIsuLTKZ/ygE5LUj0=; b=cUcNGf5xWIZ0I+RnKdTxmaZVizRRIPZlA2vncI3qQJMmvTO75rAv2oZYiI2qBI7cZb XR5+fwSelyopTrg87MUBUcB1tlYEjWw8yb/daRnkUKBZjyJvWle4brMiITNsdaDb5WSy 1x2KAR77FqwTEAFSOgub033jm6aTn9mDcq/KEBTUlz9ZH6h4XmNhyS5Hf0FyXEDPZmEk 43SZ/LUxA3B7Z8BQ17OXSO7Nt2dJKpFChrAysFnahvY+sV7MT8dXUX8j9bPA80oZcq7D 1LgIQe4Zm3QLJTbTnOjCguNup62vnb/SuIfHoLa17MqqQg8o2CEhlCRRK915ySLdCPEl UYkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sgo7WNu2r3te8+uwmFrMuip8L4ZIsuLTKZ/ygE5LUj0=; b=bO9Q7s2EGEIZcsv7j0+YW/gLnd6TzYKZQo/HparLE7WOZEMXFc5KxhWUeBKa0NJ622 Ytp9CwjRvc1wWz6CXuye385adWQ4lftljjTZtIbQUES2alxmZ98xP6MvJhJd68jD4eiM leTnWPDgEJYqB+pmWXr0kalAnmv4FR6tWyDRewwewPwMvHnnMXY2Z7T5ajDb+PvmuJB5 zD4kt1TT0KqHIAUfhBxlEMpHoo5G1VXlTX5Ok6FoeLZ/oRlDNkCJ6SRSx3eOBUYMZrSd Jzu+QMtEEYAqZgvQwuPB6ghn2Qikdk3zX2swwabX71ywJv8GseqYrRXWJ220qHwkTifG sQRQ== X-Gm-Message-State: AOAM532bMKttq2hMj/YKZmMcZ4ugEvxAyKDVEHLTFwlQyYxgzMBlWURC 6VBiWSisjgYGN46n2uZlPN7+nRXoZb4= X-Google-Smtp-Source: ABdhPJzGqC/ekKH4qdP69dZ2LaB5k2QUUyC7RZtavpDOQKd1EeE6gLMQl4374SDKrhFYlSmpT6PUQw== X-Received: by 2002:a05:620a:120b:: with SMTP id u11mr19901275qkj.243.1593529410975; Tue, 30 Jun 2020 08:03:30 -0700 (PDT) Received: from archbookpro.phub.net.cable.rogers.com (CPEc05627352ede-CM185933998587.cpe.net.cable.rogers.com. [174.112.146.193]) by smtp.gmail.com with ESMTPSA id p66sm3209626qkf.58.2020.06.30.08.03.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 08:03:30 -0700 (PDT) From: Denton Liu To: Git Mailing List Subject: [PATCH 2/5] t5324: reorder `run_with_limited_open_files test_might_fail` Date: Tue, 30 Jun 2020 11:03:16 -0400 Message-Id: X-Mailer: git-send-email 2.27.0.383.g050319c2ae In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org In the future, we plan on only allowing `test_might_fail` to work on a restricted subset of commands, including `git`. Reorder the commands so that `run_with_limited_open_files` comes before `test_might_fail`. This way, `test_might_fail` operates on a git command. Signed-off-by: Denton Liu --- t/t5324-split-commit-graph.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t5324-split-commit-graph.sh b/t/t5324-split-commit-graph.sh index 269d0964a3..9b850ea907 100755 --- a/t/t5324-split-commit-graph.sh +++ b/t/t5324-split-commit-graph.sh @@ -399,7 +399,7 @@ test_expect_success ULIMIT_FILE_DESCRIPTORS 'handles file descriptor exhaustion' for i in $(test_seq 64) do test_commit $i && - test_might_fail run_with_limited_open_files git commit-graph write \ + run_with_limited_open_files test_might_fail git commit-graph write \ --split=no-merge --reachable || return 1 done )