mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixosTests.scion-freestanding-deployment: Fix machine type assumption
This commit is contained in:
committed by
Jacek Galowicz
parent
5b78f85154
commit
18eae4ef10
@@ -140,28 +140,27 @@ in
|
||||
in
|
||||
# python
|
||||
''
|
||||
# List of AS instances
|
||||
machines = [scion01, scion02, scion03, scion04, scion05]
|
||||
vms = [scion01, scion02, scion03, scion04, scion05]
|
||||
|
||||
# Functions to avoid many for loops
|
||||
def start(allow_reboot=False):
|
||||
for i in machines:
|
||||
for i in vms:
|
||||
i.start(allow_reboot=allow_reboot)
|
||||
|
||||
def wait_for_unit(service_name):
|
||||
for i in machines:
|
||||
for i in vms:
|
||||
i.wait_for_unit(service_name)
|
||||
|
||||
def succeed(command):
|
||||
for i in machines:
|
||||
for i in vms:
|
||||
i.succeed(command)
|
||||
|
||||
def reboot():
|
||||
for i in machines:
|
||||
for i in vms:
|
||||
i.reboot()
|
||||
|
||||
def crash():
|
||||
for i in machines:
|
||||
for i in vms:
|
||||
i.crash()
|
||||
|
||||
# Start all machines, allowing reboot for later
|
||||
|
||||
Reference in New Issue
Block a user