Skip to content

Commit

Permalink
tests: quote unset to avoid globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
3hhh committed Jul 6, 2024
1 parent 4abcee4 commit bf99597
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/os/qubes4/dom0.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1139,8 +1139,8 @@ function testSuccAttach {

#cleanup
[[ "${TEST_STATE["DOM0_DETACH_FILE"]}" == "/tmp/"* ]] && rm -f "${TEST_STATE["DOM0_DETACH_FILE"]}"
unset TEST_STATE["DOM0_DETACH_FILE"]
unset TEST_STATE["DOM0_DETACH_DEVICE"]
unset 'TEST_STATE["DOM0_DETACH_FILE"]'
unset 'TEST_STATE["DOM0_DETACH_DEVICE"]'
}

@test "b_dom0_isMountedIn" {
Expand Down Expand Up @@ -1682,12 +1682,12 @@ function testSuccEnsureHalted {
@test "dom0 clean" {
if [ -n "${TEST_STATE["DOM0_TESTVM_1"]}" ] ; then
runSL qvm-shutdown "${TEST_STATE["DOM0_TESTVM_1"]}"
unset TEST_STATE["DOM0_TESTVM_1"]
unset 'TEST_STATE["DOM0_TESTVM_1"]'
fi

if [ -n "${TEST_STATE["DOM0_TESTVM_2"]}" ] ; then
runSL qvm-shutdown "${TEST_STATE["DOM0_TESTVM_2"]}"
unset TEST_STATE["DOM0_TESTVM_2"]
unset 'TEST_STATE["DOM0_TESTVM_2"]'
fi

if [ -n "$UTD_QUBES_TESTVM" ] ; then
Expand Down

0 comments on commit bf99597

Please sign in to comment.