Skip to content

Commit

Permalink
Remove unnecessary file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisKrone committed Mar 18, 2021
1 parent 5807326 commit fe84bb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/swarm
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ 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-plugins
check_output(f"rsync -qr {locust_plugins.__path__[0]} {server}:")
check_output(f"rsync -qr {locust.__path__[0]}/.. {server}:locust/")
check_output(f"rsync -qr --exclude __pycache__ {locust_plugins.__path__[0]} {server}:")
# Use this to upload locust
# check_output(f"rsync -qr --exclude __pycache__ {locust.__path__[0]}/.. {server}:locust/")
try:
check_output(f"rsync -qr {svs_locust.__path__[0]} {server}:")
check_output(f"rsync -qr --exclude __pycache__ {svs_locust.__path__[0]} {server}:")
except NameError:
pass

Expand Down

0 comments on commit fe84bb0

Please sign in to comment.