summaryrefslogtreecommitdiffstats
path: root/nixos/lib/test-driver
diff options
context:
space:
mode:
authorEric Culp <eculperic@gmail.com>2020-01-12 15:49:17 -0800
committerEric Culp <eculperic@gmail.com>2020-01-12 15:49:17 -0800
commit21f567bdd9e9abe1ce8d0a2b6595670ba9f2682b (patch)
tree6a2add36f022bf2257196eea0ea0b21c599cc7cd /nixos/lib/test-driver
parent6438ed6bdcc7195c0f3b6861e462885f76e2d542 (diff)
test-driver.py: Share the shared dir between VMs
This changes the python test driver to match the behavior of the perl test driver. I.e. the directory mounted into /tmp/shared should be the same for all machines. This probably fixes many tests, but I found this while investigating failures in nixos/tests/ceph-multi-node.nix.
Diffstat (limited to 'nixos/lib/test-driver')
-rw-r--r--nixos/lib/test-driver/test-driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py
index 7e575189209a..d5212413284a 100644
--- a/nixos/lib/test-driver/test-driver.py
+++ b/nixos/lib/test-driver/test-driver.py
@@ -221,7 +221,7 @@ class Machine:
return path
self.state_dir = create_dir("vm-state-{}".format(self.name))
- self.shared_dir = create_dir("{}/xchg".format(self.state_dir))
+ self.shared_dir = create_dir("shared-xchg")
self.booted = False
self.connected = False