mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-03 14:47:07 +00:00
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 <auke.kok@versity.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user