mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-22 10:21:01 +00:00
Change lock directory in tests to tmpfs
This prevents leftover lockfiles from interfering with tests in between test runs. Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
parent
af6359f7ae
commit
2f728ee43e
@ -20,6 +20,7 @@ services:
|
|||||||
- mock-systemd
|
- mock-systemd
|
||||||
volumes:
|
volumes:
|
||||||
- dbus:/shared/dbus
|
- dbus:/shared/dbus
|
||||||
|
- tmp:/mnt/root/tmp/balena-supervisor/services
|
||||||
- ./test/data/root:/mnt/root
|
- ./test/data/root:/mnt/root
|
||||||
- ./test/data/root/mnt/boot:/mnt/boot
|
- ./test/data/root/mnt/boot:/mnt/boot
|
||||||
- ./test/lib/wait-for-it.sh:/wait-for-it.sh
|
- ./test/lib/wait-for-it.sh:/wait-for-it.sh
|
||||||
@ -71,6 +72,7 @@ services:
|
|||||||
stop_grace_period: 3s
|
stop_grace_period: 3s
|
||||||
volumes:
|
volumes:
|
||||||
- dbus:/shared/dbus
|
- dbus:/shared/dbus
|
||||||
|
- tmp:/mnt/root/tmp/balena-supervisor/services
|
||||||
# Set required supervisor configuration variables here
|
# Set required supervisor configuration variables here
|
||||||
environment:
|
environment:
|
||||||
DOCKER_HOST: tcp://docker:2375
|
DOCKER_HOST: tcp://docker:2375
|
||||||
@ -97,8 +99,12 @@ services:
|
|||||||
- /mnt/data
|
- /mnt/data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
# Use tmpfs to avoid files remaining between runs
|
||||||
dbus:
|
dbus:
|
||||||
driver_opts:
|
driver_opts:
|
||||||
# Use tmpfs to avoid files remaining between runs
|
type: tmpfs
|
||||||
|
device: tmpfs
|
||||||
|
tmp:
|
||||||
|
driver_opts:
|
||||||
type: tmpfs
|
type: tmpfs
|
||||||
device: tmpfs
|
device: tmpfs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user