diff options
Diffstat (limited to 'pkgs/populate')
| -rw-r--r-- | pkgs/populate/tests/vm.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/populate/tests/vm.nix b/pkgs/populate/tests/vm.nix index d99388a..c174749 100644 --- a/pkgs/populate/tests/vm.nix +++ b/pkgs/populate/tests/vm.nix @@ -123,6 +123,7 @@ in pkgs.testers.runNixOSTest { testScript = /* python */ '' import json + import time plan = json.load(open("${plan}")) nodes = {"deployer": deployer, "target": target} @@ -172,10 +173,12 @@ in pkgs.testers.runNixOSTest { # input is the console the test driver talks through, # a terminal, which ssh -t would take over. limit = phase["interrupt"] or 600 + started = time.monotonic() status, out = deployer.execute( f"env HOME=/root {phase['env']} timeout {limit} {phase['populate']} </dev/null 2>&1", timeout=900, ) + print(f"populate {i}: {time.monotonic() - started:.2f} s") for unexpected in phase["unexpected"]: if unexpected in out: raise Exception( |
