Skip to content

Commit

Permalink
Upload svs_locust package if it is available
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Feb 16, 2021
1 parent 2ff3f93 commit d119ee6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/swarm
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,14 @@ def cleanup(_args):
def upload(server):
# upload test plan and any other files in the current directory (dont upload locust.conf because it might contain master-only settings like run-time)
check_output(f"rsync -qr --exclude locust.conf * {server}:")
# upload locust-extensions
# upload locust-plugins
check_output(f"rsync -qr {locust_plugins.__path__[0]} {server}:")
try:
import svs_locust # pylint: disable=import-outside-toplevel

check_output(f"rsync -qr {svs_locust.__path__[0]} {server}:")
except ImportError:
pass # svs_locust is an optional library that is only used internally at Svenska Spel. Please ignore it...


def start_locust_processes(server):
Expand Down

0 comments on commit d119ee6

Please sign in to comment.