Add tmpfs for /mnt/root/tmp in test env

This is to prevent the target state cache from getting written to host
during tests.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
Christina Ying Wang 2023-10-02 12:47:50 -07:00
parent 1b6cf322b0
commit 5564a51acf

View File

@ -25,6 +25,7 @@ services:
- ./test/lib/wait-for-it.sh:/wait-for-it.sh - ./test/lib/wait-for-it.sh:/wait-for-it.sh
tmpfs: tmpfs:
- /data # sqlite3 database - /data # sqlite3 database
- /mnt/root/tmp
# The service setup # The service setup
mock-systemd: mock-systemd: