2022-09-15 16:04:37 +00:00
|
|
|
import os
|
|
|
|
from os.path import exists
|
|
|
|
from pathlib import Path
|
2022-09-16 14:19:09 +00:00
|
|
|
from fragments import shared, garage, flavor
|
2022-09-15 16:04:37 +00:00
|
|
|
|
|
|
|
warp_bin = Path(os.path.dirname(__file__)) / "../../benchmarks/warp/warp"
|
2022-09-16 14:19:09 +00:00
|
|
|
bench = flavor.warp["warp-fast"]
|
2022-09-16 13:43:58 +00:00
|
|
|
|
2022-09-15 16:04:37 +00:00
|
|
|
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")
|