summaryrefslogtreecommitdiff
path: root/setup-disk.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-11-09 14:08:54 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-09 14:08:54 +0100
commit5eb8b1ae7c5f5d1ec8de2c17ede97b54a66f52e8 (patch)
tree993a841e3d3576f85f76f7133c7b99eba4602622 /setup-disk.in
parent5d1df928fef2848dc0b2233cf3b2c6068a8e15fb (diff)
downloadalpine-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.in6
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=