Skip to content

Commit

Permalink
Merge pull request #239 from tomponline/main
Browse files Browse the repository at this point in the history
tests: Always use lxc stop -f (force)
  • Loading branch information
tomponline authored Jul 12, 2024
2 parents 363f274 + c1e5c99 commit 85183be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/gpu-container
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ sleep 1
# Test nvidia runtime
echo "==> Testing nvidia runtime"
! lxc exec c1 -- nvidia-smi || false
lxc stop c1
lxc stop -f c1
lxc config set c1 nvidia.runtime true
lxc start c1
waitInstanceReady c1
Expand Down
4 changes: 2 additions & 2 deletions tests/gpu-mig
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ lxc exec nvidia-mig3 -- nvidia-smi
lxc start nvidia-mig4
lxc exec nvidia-mig4 -- nvidia-smi

lxc stop nvidia-mig4
lxc stop -f nvidia-mig4
if [ -n "${identical_nvidia_gpus}" ]; then
# XXX: if there are multiple identical cards the vendorid/productid combo isn't enough to identify the GPU so a
# PCI address would be needed as well but that's already been tested before
Expand All @@ -88,7 +88,7 @@ lxc exec nvidia-mig4 -- nvidia-smi
lxc list

# Stop all instances
lxc stop --all
lxc stop -f --all

# Cleanup MIG
nvidia-smi mig -dci
Expand Down
2 changes: 1 addition & 1 deletion tests/maas
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ sleep 10
host "$(hostname)-c1.lab.maas.stgraber.net" 2602:fc62:b:10::2
lxc list

lxc stop "$(hostname)-c1"
lxc stop -f "$(hostname)-c1"
lxc profile assign "$(hostname)-c1" default
lxc config device add "$(hostname)-c1" eth0 nic nictype=bridged parent=br0 maas.subnet.ipv4=MAAS-LAB-V4 maas.subnet.ipv6=MAAS-LAB-V6 ipv4.address=172.17.30.111 ipv6.address=2602:fc62:b:3000:2::111
lxc start "$(hostname)-c1"
Expand Down
2 changes: 1 addition & 1 deletion tests/storage-volumes-vm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ do
sleep 3
! lxc exec v1 -- stat "$BLOCK_SPECIAL_FILE" || false
! lxc exec v1 -- stat /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_lxd_vol1 || false
lxc stop v1
lxc stop -f v1

echo "==> Backup custom block volume"
lxc storage volume export "${poolName}" vol1 vol1.tar.gz
Expand Down

0 comments on commit 85183be

Please sign in to comment.