test: new test, verify pre:post: scripts with optional env:file

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-04-30 08:46:05 +02:00
1 parent e2d1930e6c
commit 561387ce57
6 files changed
+130 -16

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
marker="POST"
# shellcheck disable=SC2154
if [ -n "$baz" ]; then
marker=$baz
fi
echo "$marker" > /tmp/post
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
marker="PRE"
# shellcheck disable=SC2154
if [ -n "$foo" ]; then
marker=$foo
fi
echo "$marker" > /tmp/pre
+5
View File
@@ -0,0 +1,5 @@
# Some environments to be sourced by Finit services
# and their pre:- and post:scripts
foo=bar
baz=qux