mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-11 02:07:27 +01:00
At work we have the use-case that several people connect to a large
Linux box to run tests and debug those interactively.
All tests write their state into a global `/tmp` -- e.g. the vde1 socket
and the VMs' state. This leads to conflicts when multiple people are
doing this.
This change tries to use XDG_RUNTIME_DIR before using Python's detection
of a global temp directory: when connecting, this requires a working
user session, but then we get working directories per user. This is
preferable over doing something like `mktemp -d` per run since that
would break use-cases where you want to keep the VMs' state across
multiple sessions (`--keep-vm-state`).
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| make-options-doc | ||
| test-driver | ||
| testing | ||
| default.nix | ||
| eval-cacheable-options.nix | ||
| eval-config-minimal.nix | ||
| eval-config.nix | ||
| from-env.nix | ||
| make-btrfs-fs.nix | ||
| make-channel.nix | ||
| make-disk-image.nix | ||
| make-ext4-fs.nix | ||
| make-iso9660-image.nix | ||
| make-iso9660-image.sh | ||
| make-multi-disk-zfs-image.nix | ||
| make-single-disk-zfs-image.nix | ||
| make-squashfs.nix | ||
| make-system-tarball.nix | ||
| make-system-tarball.sh | ||
| qemu-common.nix | ||
| systemd-lib.nix | ||
| systemd-network-units.nix | ||
| systemd-types.nix | ||
| systemd-unit-options.nix | ||
| test-script-prepend.py | ||
| testing-python.nix | ||
| utils.nix | ||