From fe84bb02e7c8301a9f45905a146fd0c0797ebd16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Krone=CC=81?= Date: Thu, 18 Mar 2021 10:15:03 +0100 Subject: [PATCH] Remove unnecessary file uploads --- bin/swarm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/swarm b/bin/swarm index b15d288..8cd63ab 100644 --- a/bin/swarm +++ b/bin/swarm @@ -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