mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
test: Minor adjustments to improve consistency between test code structure
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
1 parent
f214098560
commit
2c055cb954
5 files changed
+39
-23
No files matched your search
@@ -4,6 +4,12 @@ assert_num_children() {
|
||||
assert "$1 services are running" "$(texec pgrep -P 1 "$2" | wc -l)" -eq "$1"
|
||||
}
|
||||
|
||||
remove_thing() {
|
||||
THING="$(realpath "$1")"
|
||||
say "Remove ${THING#*/test/*}"
|
||||
rm -f "$THING"
|
||||
}
|
||||
|
||||
texec() {
|
||||
# shellcheck disable=SC2154
|
||||
"$TEST_DIR/testenv_exec.sh" "$finit_pid" "$@"
|
||||
|
||||
Reference in new issue
Block a user