* `@testvm::cleanup`: Deletes (after optionally powering off) test VMs matching a pattern * `@testvm::connect`: Connects to test VM using SSH * `@testvm::delete`: Powers off and deletes a specific test VM * `@testvm::sftp`: Connects to a test VM using SFTP
9 lines
169 B
Bash
9 lines
169 B
Bash
# vim: set ft=zsh sw=4 ts=4 sts=4 et :
|
|
|
|
@testvm::delete() {
|
|
virsh destroy "${1}" || :
|
|
virsh undefine "${1}" --remove-all-storage --nvram
|
|
}
|
|
|
|
@testvm::delete "$@"
|