Skip to content

Commit

Permalink
Merge branch 'health_mon_deployment' into bugfix-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scoopex committed Dec 6, 2024
2 parents e7419d2 + 076ce23 commit da4a64d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloud_level_testing/features/steps/tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ipaddress
import textwrap
import time
import datetime
from functools import wraps
Expand Down Expand Up @@ -813,7 +814,7 @@ def create_wait_script(conn_test, testname):
if "iperf" in conn_test:
secondary = "iperf"

script_content = '''
script_content = textwrap.dedent('''
#!/bin/bash
let MAXW=100
if test ! -f /var/lib/cloud/instance/boot-finished; then sleep 5; sync; fi
Expand All @@ -824,7 +825,7 @@ def create_wait_script(conn_test, testname):
if test ! -f /var/lib/cloud/instance/boot-finished; then sleep 1; fi
done
exit 1
''' % (conn_test, secondary)
''') % (conn_test, secondary)
try:
with open(script_path, "w") as file:
file.write(script_content)
Expand Down

0 comments on commit da4a64d

Please sign in to comment.