nixpkgs/nixos
aszlig b0ac24ae41
nixos/test-driver: Use guest time when using sleep
With the Perl driver, machine.sleep(N) was doing a sleep on the guest
machine instead of the host machine. The new Python test driver however
uses time.sleep(), which instead sleeps on the host.

While this shouldn't make a difference most of the time, it *does*
however make a huge difference if the test machine is loaded and you're
sleeping for a minimum duration of eg. an animation.

I stumbled on this while porting most of all my tests to the new Python
test driver and particularily my video game tests failed on a fairly
loaded machine, whereas they don't with the Perl test driver.

Switching the sleep() method to sleep on the guest instead of the host
fixes this.

Signed-off-by: aszlig <aszlig@nix.build>
2020-08-29 00:55:01 +02:00
..
doc nixos/lib/test*: remove perl test driver 2020-08-27 19:45:38 +02:00
lib nixos/test-driver: Use guest time when using sleep 2020-08-29 00:55:01 +02:00
maintainers Merge pull request #89116 from wagdav/fix-args-create-amis 2020-08-22 16:47:54 +02:00
modules Merge pull request #96497 from NickHackman/emacs-documentation-typo-fix 2020-08-28 10:43:50 +02:00
tests Merge pull request #96396 from flokli/remove-perl-test-driver 2020-08-28 11:30:18 -04:00
COPYING
default.nix
README
release-combined.nix nixosTests: re-enable networking tests 2020-08-27 12:17:03 +02:00
release-small.nix
release.nix

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.