tests: Use a temporary directory for the temporary test files

Use the tempdir crate to create a temporary directory that is deleted
when the structure goes out of scope.

Use this temporary directory for all temporary test files created by the
tests. The cloud init file is still in /tmp as that is created by the
test wrapper code.

This is the first stage towards being able to run the integration tests
in parallel.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-07-18 08:57:01 +01:00
committed by Samuel Ortiz
parent 78fe807284
commit 7ebfe90985
3 changed files with 82 additions and 44 deletions
+1
View File
@@ -12,6 +12,7 @@ vmm = { path = "vmm" }
ssh2 = "=0.3.3"
dirs = "2.0.0"
credibility = "0.1.3"
tempdir="0.3.7"
[features]
default = []