== MUTATION: the restart rule widened: any failed unit restarts (the program check removed)
   if prog not in programs:  ->  if False:
   tests: 2  mutant: Ran 2 tests in 0.010s | FAILED (errors=2)  real: Ran 2 tests in 0.006s | OK
   RED on the mutant, GREEN on the real file
     KeyError: '/usr/sbin/postfix'
     KeyError: '/usr/sbin/chronyd'
== MUTATION: the stale-copy condition removed: every profile file counts, not only a rewritten one
   for key in res["rewritten"]:  ->  for key in after:
   tests: 1  mutant: Ran 1 test in 0.007s | FAILED (failures=1)  real: Ran 1 test in 0.005s | OK
   RED on the mutant, GREEN on the real file
     AssertionError: Lists differ: ['chrony.service'] != []
== MUTATION: a profile name that is not a path counts as a program
   if PROFILE_PATH_NAME_RE.match(n):  ->  if True:
   tests: 1  mutant: Ran 1 test in 0.007s | FAILED (failures=1)  real: Ran 1 test in 0.005s | OK
   RED on the mutant, GREEN on the real file
     AssertionError: Tuples differ: (0, ['nvidia.service']) != (0, [])
== MUTATION: once-per-kernel removed
   needed = rec.get("kernel") != kernel  ->  needed = True
   tests: 1  mutant: Ran 1 test in 0.007s | FAILED (failures=1)  real: Ran 1 test in 0.005s | OK
   RED on the mutant, GREEN on the real file
     AssertionError: Tuples differ: (0, 'refreshed', 2) != (0, 'not_needed', 1)
== MUTATION: the cache is not skipped (the system's own reload)
   PROFILE_REFRESH_CMD = ["apparmor_parser", "--replace", "--skip-read-cache", "--write-cache", "--", PROFILE_DIR  ->  PROFILE_REFRESH_CMD = ["apparmor_parser", "--replace", "--write-cache", "--", PROFILE_DIR]
   tests: 1  mutant: Ran 1 test in 0.006s | FAILED (failures=1)  real: Ran 1 test in 0.005s | OK
   RED on the mutant, GREEN on the real file
     AssertionError: ('host', ['apparmor_parser', '--replace', '--skip-read-cache', '--write-cache', '--', '/etc/apparmor.d']) not found in [('host', ['uname', '-r']), ('host', ['apparmor_parser', '--replace', '--write-cache', '--', '/
== MUTATION: a failed parser still writes the record
   r.log(f"os-apply: FAILED rc={rc} step=profile-refresh (no record written: the next start tries again)")  ->  r.log(f"os-apply: FAILED rc={rc} step=profile-refresh (no record written: the next start tries again)")
   tests: 1  mutant: Ran 1 test in 0.006s | FAILED (failures=1)  real: Ran 1 test in 0.005s | OK
   RED on the mutant, GREEN on the real file
     AssertionError: '/var/lib/felhom-os-apply/profile-refresh.json' unexpectedly found in {'/var/lib/felhom-os-apply/profile-refresh.json': '{"kernel": "7.0.14-28-pve"}'}
== MUTATION: the plan may name things (F1 removed)
   for k in ("packages", "allow_new", "signed", "select", "undo", "snapshot", "profiles", "units", "force"):  ->  for k in ("packages", "allow_new", "signed", "select", "undo", "snapshot", "profiles", "units", "force"):
   tests: 1  mutant: Ran 1 test in 0.007s | FAILED (failures=1)  real: Ran 1 test in 0.001s | OK
   RED on the mutant, GREEN on the real file
     AssertionError: 0 != 2 : {'layer': 'host', 'mode': 'profile-refresh', 'pass_seconds': 0.0, 'profile_refresh': {'dry_run': False, 'kernel': '7.0.14-28-pve', 'last_refresh_at': None, 'last_refresh_kernel': None, 'not_restarted': [],
== MUTATION: the appliance rule removed
   self.check_appliance()  ->  return self.profile_refresh(plan)
   tests: 1  mutant: Ran 1 test in 0.005s | FAILED (errors=1)  real: Ran 1 test in 0.000s | OK
   RED on the mutant, GREEN on the real file
     TypeError: 'NoneType' object is not subscriptable
== MUTATION: the dry run refreshes
   if dry:  ->  if False:
   tests: 1  mutant: Ran 1 test in 0.006s | FAILED (errors=1)  real: Ran 1 test in 0.000s | OK
   RED on the mutant, GREEN on the real file
     KeyError: 'would'
== MUTATION: the restart cap removed
   if len(res["restarted"]) >= PROFILE_RESTART_MAX:  ->  if False:
   tests: 1  mutant: Ran 1 test in 0.007s | FAILED (failures=1)  real: Ran 1 test in 0.005s | OK
   RED on the mutant, GREEN on the real file
     AssertionError: Tuples differ: (0, 5, 0) != (0, 3, 2)

10 mutations, 0 not a red-proof
