diff options
| author | aszlig <aszlig@nix.build> | 2020-08-29 00:47:17 +0200 |
|---|---|---|
| committer | aszlig <aszlig@nix.build> | 2020-08-29 00:55:01 +0200 |
| commit | b0ac24ae4114b89e0accc4f30c49b2b9c73bbf22 (patch) | |
| tree | 86342559e7b8cc9081ebf89b4c24dc7e99f81f0d /pkgs/development/python-modules/rangehttpserver | |
| parent | 64ad3efd1abd93ceedfadd87ead1c9f601194df3 (diff) | |
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>
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
