Skip to content
Unverified Commit 5e7bf8c5 authored by aszlig's avatar aszlig
Browse files

nixos/tests/misc: Fix reboot-wtmp subtest

From commit b63f65ae

:

  I used tmpfiles.d instead of activation snippets to create the logs.
  It's good enough for upstream and other distros; it's probably good
  enough for us.

The "reboot-wtmp" subtest fails because it it assumes that there is a
reboot record even on the initial boot. This is only the case if wtmp is
created within the activation script, but the implementation now uses
tmpfiles.d, so the creation of the file is done at a much later stage.

Apart from that, if you think about the state after the installation as
"first boot", using the term "reboot" wouldn't probably make sense
either.

So in our subtest, we now reboot the machine and check the wtmp record
afterwards as we did before.

Signed-off-by: default avataraszlig <aszlig@nix.build>
Cc: @edolstra, @jameysharp, @Mic92
parent 889c7203
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment