mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-30 19:21:12 +02:00
* Add a simple integration test for "tart run" * Integration tests: only "tart list" local VM images
11 lines
340 B
Python
11 lines
340 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", "--source", "local", "--quiet"])
|
|
assert stdout == "debian\nubuntu\n"
|