mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-08 07:01:14 +02:00
* Integration tests * Set "HOMEBREW_NO_AUTO_UPDATE=1" for virtualenv installation step * Use CIRRUS_WORKING_DIR as temporary directory if present
11 lines
319 B
Python
11 lines
319 B
Python
def test_clone(tart):
|
|
# Create a Linux VM (because we can create it really fast)
|
|
tart.run(["create", "--linux", "debian"])
|
|
|
|
# Clone the VM
|
|
tart.run(["clone", "debian", "ubuntu"])
|
|
|
|
# Ensure that we have now 2 VMs
|
|
stdout, _, = tart.run(["list", "--quiet"])
|
|
assert stdout == "debian\nubuntu\n"
|