Skip to content

Commit

Permalink
fold up - clean up test teardown
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Oct 25, 2023
1 parent e6fd614 commit 9fb25b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tests/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ function trust_teardown {
}

function common_teardown {
echo "Not deleting $TMPD and $TMPUD"
echo "Deleting $TMPD and $TMPUD"
if [ -n $TMPD ]; then
lxc-usernsexec -s -- rm -rf $TMPD
fi
if [ -n $TMPUD ]; then
lxc-usernsexec -s -- rm -rf $TMPUD
fi

trust_teardown
}

Expand Down
2 changes: 1 addition & 1 deletion tests/vmhelpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function vm_setup() {
}

function vm_teardown() {
echo "not deleting machine ${VMNAME}"
machine delete ${VMNAME}
}

function wait_for_vm() {
Expand Down

0 comments on commit 9fb25b1

Please sign in to comment.