From e2f3f2e06026eb715926048f4e0d35b14e1dbbd2 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Mon, 2 Feb 2026 14:37:40 -0800 Subject: [PATCH] Put `.full` file in $T_TMPDIR. This file was put into $CWD by the test scripts for no real good reason. I suppose somewhere $seqres was supposed to be set before these writes happened. Just write them to the test temp folder for good measure for now. Signed-off-by: Auke Kok --- tests/tests/simple-inode-index.sh | 6 +++--- tests/tests/simple-staging.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/tests/simple-inode-index.sh b/tests/tests/simple-inode-index.sh index 414c0db3..b771dc3a 100644 --- a/tests/tests/simple-inode-index.sh +++ b/tests/tests/simple-inode-index.sh @@ -92,13 +92,13 @@ test "$before" -lt "$after" || \ # didn't skip past deleted dirty items # echo "== make sure dirtying doesn't livelock walk" -dd if=/dev/urandom of="$DIR/dirtying" bs=4K count=1 >> $seqres.full 2>&1 +dd if=/dev/urandom of="$DIR/dirtying" bs=4K count=1 >> "$T_TMPDIR/seqres.full" 2>&1 nr=1 while [ "$nr" -lt 100 ]; do - echo "dirty/walk attempt $nr" >> $seqres.full + echo "dirty/walk attempt $nr" >> "$T_TMPDIR/seqres.full" sync dd if=/dev/urandom of="$DIR/dirtying" bs=4K count=1 conv=notrunc \ - >> $seqres.full 2>&1 + >> "$T_TMPDIR/seqres.full" 2>&1 scoutfs walk-inodes data_seq 0 -1 $DIR/dirtying >& /dev/null ((nr++)) done diff --git a/tests/tests/simple-staging.sh b/tests/tests/simple-staging.sh index 9024661e..49eb7628 100644 --- a/tests/tests/simple-staging.sh +++ b/tests/tests/simple-staging.sh @@ -12,12 +12,12 @@ create_file() { if [ "$blocks" != 0 ]; then dd if=/dev/urandom bs=4096 count=$blocks of="$file" \ - >> $seqres.full 2>&1 + >> "$T_TMPDIR/seqres.full" 2>&1 fi if [ "$remainder" != 0 ]; then dd if=/dev/urandom bs="$remainder" count=1 of="$file" \ - conv=notrunc oflag=append >> $seqres.full 2>&1 + conv=notrunc oflag=append >> "$T_TMPDIR/seqres.full" 2>&1 fi } @@ -78,7 +78,7 @@ create_file "$FILE" $((4096 * 1024)) cp "$FILE" "$T_TMP" nr=1 while [ "$nr" -lt 10 ]; do - echo "attempt $nr" >> $seqres.full 2>&1 + echo "attempt $nr" >> "$T_TMPDIR/$seqres.full" 2>&1 release_vers "$FILE" stat 0 4096K sync echo 3 > /proc/sys/vm/drop_caches