Skip to content

Commit

Permalink
Wait for E2E Agent to be started when running Python 2 (#9828)
Browse files Browse the repository at this point in the history
* Wait for E2E Agent to be started when running Python 2

* test

* all good

* address
  • Loading branch information
ofek committed Aug 3, 2021
1 parent 7153302 commit 541005b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from ....ci import running_on_ci
from ....fs import dir_exists, file_exists, path_join
from ....utils import ON_WINDOWS
from ...e2e import E2E_SUPPORTED_TYPES, derive_interface, start_environment, stop_environment
from ...e2e.agent import DEFAULT_PYTHON_VERSION, DEFAULT_SAMPLING_COLLECTION_INTERVAL
from ...git import get_current_branch
Expand Down Expand Up @@ -242,6 +243,10 @@ def start(ctx, check, env, agent, python, dev, base, env_vars, org_name, profile
stop_environment(check, env, metadata=metadata)
environment.remove_config()
abort()

if ON_WINDOWS and python < 3:
time.sleep(10)

echo_success('success!')

start_commands = metadata.get('start_commands', [])
Expand Down

0 comments on commit 541005b

Please sign in to comment.