2022-08-19 20:07:33 +00:00
|
|
|
# This defines default configuration that
|
2022-08-22 23:54:21 +00:00
|
|
|
# should apply to all mocha-pod/testfs instances
|
2022-08-19 20:07:33 +00:00
|
|
|
testfs:
|
2022-08-22 23:54:21 +00:00
|
|
|
# These are test files that need to be configured
|
|
|
|
# for all tests. The `from` defines where to find
|
|
|
|
# them in the local source. These can be overriden
|
|
|
|
# in the `testfs` configuration.
|
2022-08-19 20:07:33 +00:00
|
|
|
filesystem:
|
2022-08-25 17:12:53 +00:00
|
|
|
/mnt/root:
|
|
|
|
/mnt/boot/config.json:
|
|
|
|
from: test/data/testconfig.json
|
|
|
|
/mnt/boot/config.txt:
|
|
|
|
from: test/data/mnt/boot/config.txt
|
|
|
|
/mnt/boot/device-type.json:
|
|
|
|
from: test/data/mnt/boot/device-type.json
|
2022-08-24 20:02:19 +00:00
|
|
|
/mnt/root/etc/os-release:
|
2022-08-19 20:07:33 +00:00
|
|
|
from: test/data/etc/os-release
|
2022-08-22 23:54:21 +00:00
|
|
|
# The `keep` list defines files that already exist in the
|
|
|
|
# filesystem and need to be backed up before setting up the test environment
|
|
|
|
keep: []
|
|
|
|
# The `cleanup` list defines files created by the tests that need to be removed
|
|
|
|
# when restoring the filesystem
|
2022-08-19 20:07:33 +00:00
|
|
|
cleanup:
|
|
|
|
- /data/database.sqlite
|