diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-09 14:08:54 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-09 14:08:54 +0100 |
commit | 5eb8b1ae7c5f5d1ec8de2c17ede97b54a66f52e8 (patch) | |
tree | 993a841e3d3576f85f76f7133c7b99eba4602622 /setup-disk.in | |
parent | 5d1df928fef2848dc0b2233cf3b2c6068a8e15fb (diff) | |
download | alpine-conf-5eb8b1ae7c5f5d1ec8de2c17ede97b54a66f52e8.zip |
setup-disk: env SETUP_DISK_TESTFUNC for unit testing
Use an env var SETUP_DISK_TESTFUNC to run individual functions for unit
testing purposes.
Diffstat (limited to 'setup-disk.in')
-rw-r--r-- | setup-disk.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in index 54e138b..d56a572 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -1448,6 +1448,12 @@ case $kver in *) KERNEL_FLAVOR=lts;; esac +# for unit testing of individual functions +if [ -n "$SETUP_DISK_TESTFUNC" ]; then + $SETUP_DISK_TESTFUNC "$@" + exit +fi + USE_CRYPT= DISK_MODE= USE_LVM= |