aboutsummaryrefslogtreecommitdiff
path: root/tests/vm/openbsd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/openbsd')
-rwxr-xr-xtests/vm/openbsd4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/vm/openbsd b/tests/vm/openbsd
index 2105c01..87ec982 100755
--- a/tests/vm/openbsd
+++ b/tests/vm/openbsd
@@ -36,8 +36,8 @@ class OpenBSDVM(basevm.BaseVM):
img_tmp_xz = img + ".tmp.xz"
img_tmp = img + ".tmp"
sys.stderr.write("Extracting the image...\n")
- subprocess.check_call(["cp", "-f", cimg, img_tmp_xz])
- subprocess.check_call(["xz", "-dvf", img_tmp_xz])
+ subprocess.check_call(["ln", "-f", cimg, img_tmp_xz])
+ subprocess.check_call(["xz", "--keep", "-dvf", img_tmp_xz])
if os.path.exists(img):
os.remove(img)
os.rename(img_tmp, img)