From d0c1c28438b1a34ccbc3f5c2693fff3b1145f071 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Tue, 24 Feb 2026 13:44:14 -0500 Subject: [PATCH] Use awk matching for ino. This test regularly fails here because the grep is greedy and can match inodes ending in the same digits as the one we're looking for. Make it use the same awk pattern used below. Signed-off-by: Auke Kok --- tests/tests/simple-inode-index.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests/simple-inode-index.sh b/tests/tests/simple-inode-index.sh index 414c0db33..93f4ca9af 100644 --- a/tests/tests/simple-inode-index.sh +++ b/tests/tests/simple-inode-index.sh @@ -32,7 +32,7 @@ echo "== dirs shouldn't appear in data_seq queries" mkdir "$DIR" ino=$(stat -c "%i" "$DIR") t_sync_seq_index -query_index data_seq | grep "$ino\>" +query_index data_seq | awk '($4 == "'$ino'")' echo "== two created files are present and come after each other" touch "$DIR/first"