mknet/scenarios/garage-warp

21 lines
561 B
Text
Raw Normal View History

2022-09-15 15:12:21 +00:00
#!/usr/bin/env python3
from fragments import garage, warp, shared
2022-09-15 16:04:37 +00:00
import sys
2022-09-15 15:12:21 +00:00
2022-09-15 16:04:37 +00:00
for flavor in sys.argv[1:]:
2022-09-16 13:43:58 +00:00
if flavor in garage.version_flavor:
garage.version = garage.version_flavor[flavor]
if flavor in warp.bench_flavor:
warp.bench = warp.bench_flavor[flavor]
2022-09-15 15:12:21 +00:00
2022-09-15 16:04:37 +00:00
if shared.id() == 1:
2022-09-16 13:43:58 +00:00
garage.deploy_coord(version=garage.version)
2022-09-15 16:04:37 +00:00
warp.on_garage(params=warp_bench)
garage.delete_key()
garage.destroy()
else:
2022-09-16 13:43:58 +00:00
garage.deploy_follow(version=garage.version)
2022-09-15 16:04:37 +00:00
garage.sync_on_key_down()
garage.destroy()
shared.log("bye")