File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,17 @@ verify_environment_variables() {
24
24
enable_composers () {
25
25
# CONVERGENCE_COMPOSER
26
26
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
28
38
fi
29
39
}
30
40
@@ -33,9 +43,8 @@ signal_ready() {
33
43
for i in $( seq 1 " ${POOLS} " ) ; do
34
44
(
35
45
while true ; do
36
- block_num=$( cardano-cli ping -t -q -j --magic 42 --host p${i} .example --port ${PORT} 2> /dev/null | jq -r ' .tip[0].blockNo' 2> /dev/null)
37
- exit_code=${?}
38
- if [ ${exit_code} -ne 0 ]; then
46
+ cardano-cli ping -c1 -q -j --magic 42 --host p${i} .example --port ${PORT} 2> /dev/null
47
+ if [ $? -ne 0 ] ; then
39
48
sleep 1
40
49
continue
41
50
else
You can’t perform that action at this time.
0 commit comments