3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/lib
Félix Baylac-Jacqué ecb73fd555
test-driver.py: fix VM state directory deletion
The previous version of the code would only kick in if the state
directory path pointed at a *file*, which never occurs. Making that
codepath actually work reveals an ordering bug, which this patch fixes
as well.

It also replaces the confusing, imperative case log message "delete VM
state directory" with "deleting VM state directory".

Finally, we hint the user about how to prevent this deletion. IE. by
passing the --keep-vm-state flag.

Bug report:
https://github.com/NixOS/nixpkgs/pull/91046#issuecomment-685568750

Credit goes to Edef for the rebase on top of a recent nixpkgs commit
and for writing most of this commit message.

Co-authored-by: edef <edef@edef.eu>
2020-09-07 12:26:40 +02:00
..
make-options-doc nixos/lib/make-options-doc: remove loaOf subs 2020-09-02 00:42:51 +02:00
test-driver test-driver.py: fix VM state directory deletion 2020-09-07 12:26:40 +02:00
build-vms.nix
eval-config.nix Merge pull request #51850 from roberth/nixos-pure 2020-08-24 04:29:37 +02:00
from-env.nix
make-channel.nix
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
make-system-tarball.nix
make-system-tarball.sh
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/testing: remove remaining coverage-data logic 2020-09-05 16:07:59 +02:00
utils.nix nixos/boot: some documentation improvements 2020-07-29 14:39:21 -07:00