[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] test-network: Wait a few seconds between attempts



commit 363038e37d84043b005993906345c789a066709b
Author: teor <teor@xxxxxxxxxxxxxx>
Date:   Thu Mar 12 20:16:18 2020 +1000

    test-network: Wait a few seconds between attempts
    
    We want to make sure tor has fully exited, and the OS has reclaimed
    its resources.
    
    The pause helps if the failure happened due to system load.
    
    Part of 33583.
---
 tools/test-network.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/test-network.sh b/tools/test-network.sh
index 9d06027..71c3321 100755
--- a/tools/test-network.sh
+++ b/tools/test-network.sh
@@ -390,6 +390,11 @@ while [ "$n_attempts" -lt "$max_attempts" ]; do
     if test "$?" = 77; then
 	exit 77
     fi
+    # Wait a little while after failures
+    if [ "$n_attempts" -lt "$max_attempts" ]; then
+        $ECHO "==== Failed bootstrap attempt $n_attempts, trying again..."
+        sleep 6
+    fi
 done
 
 $ECHO "Chutney failed $n_attempts bootstraps; we may have a problem here."



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits