Skip to content

Commit 375f8ec

Browse files
committed
Remove redundant directory changes in test data preparation script.
- Remove duplicate `cd "$(dirname "$0")/../.."` commands before torrentfile create calls - Keep single directory change at script start for cleaner execution flow
1 parent 53bdfb6 commit 375f8ec

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tools/torrent_compress_recovery/tests/fixtures/prepare_real_data.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ for name in padding.txt real1.txt real2.txt; do
199199
gzip -n -6 -c "$PADDING_RAW_DIR/$name" > "$PADDING_COMPRESSED_DIR/$name.gz"
200200
done
201201

202-
cd "$(dirname "$0")/../.."
203202
uv run torrentfile create \
204203
--announce "http://localhost:6969/announce" \
205204
--piece-length 16 \
@@ -215,7 +214,6 @@ echo "Medium pieces torrent: $OVERLAP_DIR/overlap_medium_pieces.torrent"
215214
echo "Padding offset torrent: $PADDING_DIR/padding_offset.torrent"
216215

217216
# Create torrent using torrentfile CLI (supports v1, v2, and hybrid)
218-
cd "$(dirname "$0")/../.."
219217

220218
# Create a temporary directory with only the compressed files for torrentfile
221219
COMPRESSED_ONLY_DIR="$DATA_DIR/compressed_only_temp"

0 commit comments

Comments
 (0)