diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-15 18:04:37 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-15 18:04:37 +0200 |
commit | 4bec653fe9c404b09d30882283541ea18b8b6fc2 (patch) | |
tree | 587b31a95f9909eed8b94d3e83c7adfbb61fe02d /scenarios/fragments | |
parent | 18b8cb0f2b4279e37c8318945ad01e1aa46cbd8c (diff) | |
download | mknet-4bec653fe9c404b09d30882283541ea18b8b6fc2.tar.gz mknet-4bec653fe9c404b09d30882283541ea18b8b6fc2.zip |
Add warp
Diffstat (limited to 'scenarios/fragments')
-rw-r--r-- | scenarios/fragments/warp.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scenarios/fragments/warp.py b/scenarios/fragments/warp.py index e69de29..bf3f4d6 100644 --- a/scenarios/fragments/warp.py +++ b/scenarios/fragments/warp.py @@ -0,0 +1,11 @@ +import os +from os.path import exists +from pathlib import Path +from fragments import shared, garage + +warp_bin = Path(os.path.dirname(__file__)) / "../../benchmarks/warp/warp" + +def on_garage(params="mixed"): + shared.log(f"launching warp {warp_bin}") + shared.exec(f"{warp_bin} {params} --host={os.environ['IP']}:3900 --access-key={garage.key.access_key_id} --secret-key={garage.key.secret_access_key}") + shared.log(f"execution done") |