1{
2 name = "systemd-pstore";
3
4 nodes.machine = { };
5
6 testScript = ''
7 with subtest("pstore API fs is mounted"):
8 machine.succeed("stat /sys/fs/pstore")
9
10 with subtest("systemd-pstore.service doesn't run because nothing crashed"):
11 output = machine.execute("systemctl status systemd-pstore.service", check_return=False)[1]
12 t.assertIn("condition unmet", output)
13 '';
14}