From 0c1013d736300e7091067a6b0f744ea65cba7c01 Mon Sep 17 00:00:00 2001 From: Pavel Kalinnikov Date: Tue, 7 Feb 2023 12:05:09 +0000 Subject: [PATCH] roachtest: fix inconsistency test Fix usage of "find" util so that the test works on Linux as well. Release note: none Epic: none --- pkg/cmd/roachtest/tests/inconsistency.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/roachtest/tests/inconsistency.go b/pkg/cmd/roachtest/tests/inconsistency.go index 9ca222f1c4e2..4c4a95034128 100644 --- a/pkg/cmd/roachtest/tests/inconsistency.go +++ b/pkg/cmd/roachtest/tests/inconsistency.go @@ -145,9 +145,9 @@ func runInconsistency(ctx context.Context, t test.Test, c cluster.Cluster) { c.Run(ctx, c.Node(n), "find {store-dir}/auxiliary/checkpoints -name checkpoint.txt") // The checkpoint can be inspected by the tooling. c.Run(ctx, c.Node(n), "./cockroach debug range-descriptors "+ - "$(find {store-dir}/auxiliary/checkpoints/* -type d -depth 0 | head -n1)") + "$(find {store-dir}/auxiliary/checkpoints/* -maxdepth 0 -type d | head -n1)") c.Run(ctx, c.Node(n), "./cockroach debug range-data --limit 10 "+ - "$(find {store-dir}/auxiliary/checkpoints/* -type d -depth 0 | head -n1) 1") + "$(find {store-dir}/auxiliary/checkpoints/* -maxdepth 0 -type d | head -n1) 1") } // NB: we can't easily verify the error because there's a lot of output which