test: support run, debug commands in basic NixOS tests

Currently, this only affects the basic NixOS test `clightning-replication`.
This commit is contained in:
Erik Arvstedt 2022-12-12 11:57:15 +01:00
parent ae733d887e
commit addfa8ec6b
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 6 additions and 7 deletions

View file

@ -27,4 +27,9 @@ let
inherit (test) meta passthru;
} // test;
in
runTest
runTest // {
# A VM runner for interactive use
run = pkgs.writers.writeBashBin "run-vm" ''
. ${./run-vm.sh} ${runTest.driver} "$@"
'';
}