test: new regression test, //run/foo.pid -> /var/run///run/foo.pid

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-02-05 18:07:12 +01:00
1 parent a96edf0291
commit a67b2ba9a7
3 files changed
+59

No files matched your search

+5
View File
@@ -86,6 +86,11 @@ assert_nocond()
assert "Condition $cond cleared" "$(texec initctl -v cond get "$cond")" = "off"
}
assert_is_pidfile()
{
assert "Process has PID file: $2" "$(texec initctl -p status "$1" | awk '/PID file/{print $4}')" = "$2"
}
# shellcheck disable=SC2086
assert_has_pidfile()
{