Skip to content

Commit d9ea483

Browse files
committed
Fix test symlinks
Antithesis doesn't follow symlinks to directories so create individual symlinks for each script.
1 parent 9c74b57 commit d9ea483

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

compose/sidecar/sidecar.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@ verify_environment_variables() {
2424
enable_composers() {
2525
# CONVERGENCE_COMPOSER
2626
if [ "${CONVERGENCE_COMPOSER,,}" = "true" ]; then
27-
ln -snf /opt/composer/convergence /opt/antithesis/test/v1/convergence
27+
local src_dir="/opt/composer/convergence"
28+
local dest_dir="/opt/antithesis/test/v1/convergence"
29+
30+
mkdir -p "$dest_dir"
31+
32+
for file in "$src_dir"/*; do
33+
if [ -f "$file" ]; then # Only process regular files (not directories or symlinks)
34+
local filename=$(basename "$file")
35+
ln -snf "$file" "$dest_dir/$filename"
36+
fi
37+
done
2838
fi
2939
}
3040

0 commit comments

Comments
 (0)