{ extraModules, vhack, ... }: vhack.runTest { name = "rust-motd"; nodes = { server = {config, ...}: { imports = extraModules ++ [ ../../../../modules ]; vhack = { rust-motd.enable = true; }; }; }; services = [ { server = "rust-motd.service"; start = true; } ]; testScript = {nodes, ...}: # Python '' with subtest("Motd generated"): server.succeed("cat /var/lib/rust-motd/motd | tee /dev/stderr | grep --invert-match --ignore-case Error") server.copy_from_vm("/var/lib/rust-motd/motd") ''; }