mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
test: new regression test for issue #351
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
bdaf3370d4
commit
13dddb6912
4 files changed
+73
No files matched your search
@@ -57,6 +57,11 @@ assert_restarts()
|
||||
assert "Finit has registered restarts" "$(texec initctl status "$2" | awk '/Restarts/{print $3;}')" -ge "$1"
|
||||
}
|
||||
|
||||
assert_restart_cnt()
|
||||
{
|
||||
assert "Finit restart cnt $1" "$(texec initctl status "$2" | awk '/Restarts/{print $4;}')" = "($1)"
|
||||
}
|
||||
|
||||
assert_norestart()
|
||||
{
|
||||
assert "Service $1 is stable, no restarts" "$(texec initctl status "$1" | awk '/Restarts/{print $3;}')" -eq "0"
|
||||
|
||||
Reference in new issue
Block a user