Skip to content

Commit

Permalink
test/suites/container_devices_proxy: Add check for host socket remova…
Browse files Browse the repository at this point in the history
…l upon unix proxy device removal

Signed-off-by: Kadin Sayani <[email protected]>
  • Loading branch information
kadinsayani committed Feb 27, 2025
1 parent b8ff493 commit 2cd415d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/suites/container_devices_proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,12 @@ container_devices_proxy_unix() {
false
fi

rm -f "${HOST_SOCK}"
# Ensure host socket removed upon device removal.
lxc config device remove proxyTester proxyDev
if [ -e "${HOST_SOCK}" ]; then
echo "Host socket was not removed upon device removal"
false
fi

# Cleanup
lxc delete -f proxyTester
Expand Down

0 comments on commit 2cd415d

Please sign in to comment.