Files
nixpkgs/nixos/tests/phosh.nix
Luflosi f55435fc4b nixos/tests/phosh: fix
This fixes multiple problems that caused the test to fail:
- Setting the time to the year 2022 with `timedatectl set-time` would fail with "Failed to set time: Requested to set the clock to time before build time, refusing.". To fix this, use `date -s` instead, since this command does no such validation.
- Sometimes it would happen that the system time was set to 2022 but then the RTC would be read and it would override the time. To work around this, wait for the RTC device to exist and then to be extra safe, also write the desired date (and time) to the RTC.
- We're using a different on-screen keyboard for phosh now which no longer shows up automatically. Therefore the text "123" would never appear on the screen. To fix this, simply remove the whole subtest.
2026-03-27 15:14:00 +01:00

2.1 KiB