fixing test failures
This commit is contained in:
1 parent
c8ff8b1f25
commit
42e903909c
14 files changed
+823
-111
No files matched your search
+8
-5
@@ -1,22 +1,25 @@
|
||||
#!/usr/bin/env nu
|
||||
#
|
||||
# runvmtest — build and run the guest-config VM test (guest/vm-test.nix).
|
||||
# runvmtest — build and run the guest-config VM tests. The mode-independent
|
||||
# assertions (seeding, idempotency, account, SSH) are shared between the two
|
||||
# tests via guest/vm-tests/common.nix; each test adds its own mode's
|
||||
# networking checks.
|
||||
#
|
||||
# Plain pass/fail: the build fails if any testScript assertion fails. For
|
||||
# stepping through it interactively instead, use runvmtest-debug.
|
||||
#
|
||||
# --impure is required because guest/common.nix reads
|
||||
# /etc/hermenix/local.nix if present, same as the real hermes-guest-image
|
||||
# build — a pre-existing property of common.nix, not something this test
|
||||
# introduces.
|
||||
# build — a pre-existing property of common.nix, not something the tests
|
||||
# introduce.
|
||||
#
|
||||
# Not run for you automatically: this needs a real build, which agents in
|
||||
# this repo don't run (see GUIDELINES.md). You (or CI) run this by hand.
|
||||
|
||||
def main [
|
||||
suite?: string # which check to run: guest-vm (default) or migrate-connections-vm
|
||||
suite?: string # which check to run: guest-vm-unbridged (default), guest-vm-bridged, or migrate-connections-vm
|
||||
] {
|
||||
let check = $suite | default "guest-vm"
|
||||
let check = $suite | default "guest-vm-unbridged"
|
||||
let attr = $".#checks.x86_64-linux.($check)"
|
||||
print $"running ($attr)"
|
||||
^nix build $attr --impure -L
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env nu
|
||||
#
|
||||
# runvmtest-debug — build the guest-config VM test's interactive driver and
|
||||
# runvmtest-debug — build a 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
|
||||
@@ -8,16 +8,16 @@
|
||||
# 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
|
||||
# machine.succeed("...") # run any assertion from the guest-vm tests 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 [
|
||||
suite?: string # which check to debug: guest-vm (default) or migrate-connections-vm
|
||||
suite?: string # which check to debug: guest-vm-unbridged (default), guest-vm-bridged, or migrate-connections-vm
|
||||
] {
|
||||
let check = $suite | default "guest-vm"
|
||||
let check = $suite | default "guest-vm-unbridged"
|
||||
let attr = $".#checks.x86_64-linux.($check).driverInteractive"
|
||||
print $"building interactive driver for ($attr)"
|
||||
^nix build $attr --impure -L
|
||||
|
||||
Reference in new issue
Block a user