test: Minor adjustments to improve consistency between test code structure

Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
Magnus Malm committed 2021-02-24 13:20:13 +01:00
1 parent f214098560
commit 2c055cb954
5 files changed
+39 -23

No files matched your search

+6
View File
@@ -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" "$@"