nixpkgs/nixos/lib
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
..
make-options-doc nixos/manual: improve error message for invalid values in `relatedPackages' 2020-08-03 16:37:59 +02:00
test-driver nixos/test-driver: Use guest time when using sleep 2020-08-29 00:55:01 +02:00
build-vms.nix Merge branch 'master' into flip-map-foreach 2019-08-18 18:00:25 +03:00
eval-config.nix Merge pull request #51850 from roberth/nixos-pure 2020-08-24 04:29:37 +02:00
from-env.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
make-channel.nix Remove incorrect sentence from make-channel comment 2018-11-04 20:45:49 +01:00
make-disk-image.nix nixos/lib/make-disk-image.nix: abritary format input 2020-07-31 15:33:08 +02:00
make-ext4-fs.nix nixos/lib/make-ext4-fs: fix after mkfs.ext4 refactoring 2020-07-26 22:49:55 +02:00
make-iso9660-image.nix make-iso9660-image: produce stable GPT disk GUID 2020-07-20 11:16:59 +02:00
make-iso9660-image.sh make-iso9660-image: produce stable GPT disk GUID 2020-07-20 11:16:59 +02:00
make-squashfs.nix kernel config: add support for CONFIG_SQUASHFS_ZSTD (#52967) 2019-01-17 15:24:44 +02:00
make-system-tarball.nix use closure-info for building system tarball 2018-11-07 12:52:53 +08:00
make-system-tarball.sh use closure-info for building system tarball 2018-11-07 12:52:53 +08:00
qemu-flags.nix runInLinuxVM, test-driver: use -cpu max instead of -cpu host 2020-08-21 23:42:07 -05:00
testing-python.nix nixos/test-driver: switch to pythons' logging lib 2020-08-25 10:13:27 +01:00
utils.nix nixos/boot: some documentation improvements 2020-07-29 14:39:21 -07:00