Skip to content

Commit

Permalink
Merge pull request #136 from SvenskaSpel/dashboards-dont-accidentally…
Browse files Browse the repository at this point in the history
…-modify-sys.argv

Dashboards: Dont accidentally modify sys.argv. Fixes locustio/locust#2376
  • Loading branch information
cyberw authored Aug 1, 2023
2 parents 3c857e8 + 057de11 commit 9c62e29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions locust_plugins/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ def on_request(
self._samples.append(sample)

def log_start_testrun(self):
cmd = sys.argv
del cmd[0]
cmd = sys.argv[1:]
with self.dbcursor() as cur:
cur.execute(
"INSERT INTO testrun (id, testplan, num_clients, rps, description, env, profile_name, username, gitrepo, changeset_guid, arguments) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)",
Expand Down

0 comments on commit 9c62e29

Please sign in to comment.