21 lines
845 B
Plaintext
Executable File
21 lines
845 B
Plaintext
Executable File
#!/usr/bin/env nu
|
|
#
|
|
# runvmtest-debug — build the guest-config VM test's interactive driver and
|
|
# drop into it, instead of just running it for pass/fail (see runvmtest).
|
|
#
|
|
# Opens a Python (ptpython) REPL with the test's node defined but not yet
|
|
# started. Useful from there:
|
|
# start_all()
|
|
# machine.wait_for_unit("multi-user.target")
|
|
# machine.shell_interact() # live shell inside the guest, over the console
|
|
# machine.succeed("...") # run any assertion from guest/vm-test.nix by hand
|
|
#
|
|
# Same --impure requirement as runvmtest, same reason (guest/common.nix
|
|
# reads /etc/hermenix/local.nix if present). Not run for you automatically
|
|
# — needs a real build, which agents in this repo don't run.
|
|
|
|
def main [] {
|
|
^nix build ".#checks.x86_64-linux.guest-vm.driverInteractive" --impure -L
|
|
^./result/bin/nixos-test-driver
|
|
}
|