Skip to content

Commit 804f655

Browse files
committed
test: fix depserv.sh after regression in 0b182c0
A service that is reloaded should not trigger dependants to be reloaded unless the new <~cond> is used. Which is reserve for tightly coupled services. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent 2c78e74 commit 804f655

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/depserv.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# - bar must not start until foo is ready
66
# - bar must be stopped when foo goes down
77
# - bar must be restarted when foo is restarted
8-
# - bar must be restarted when foo is reloaded (per-service reload)
8+
# - bar must not be restarted when foo is reloaded (per-service reload)
99
#
1010
# Regression test bug #314, that bar is not in a restart loop when foo
1111
# is stopped. Also, verify that changing between runlevels, where foo
@@ -50,15 +50,15 @@ test_one()
5050
run "initctl status"
5151
assert "bar is restarted" "$(texec initctl |grep bar | awk '{print $1;}')" != "$pid"
5252

53-
say "Verify bar is restarted when foo is reloaded (per-service) ..."
53+
say "Verify bar is NOT restarted when foo is reloaded (per-service) ..."
5454
retry 'assert_status "bar" "running"' 5 1
5555
pid=$(texec initctl |grep bar | awk '{print $1;}')
5656
run "initctl reload foo"
5757
retry 'assert_status "bar" "running"' 5 1
58-
assert "bar is restarted on reload" "$(texec initctl |grep bar | awk '{print $1;}')" != "$pid"
58+
assert "bar is NOT restarted on reload" "$(texec initctl |grep bar | awk '{print $1;}')" == "$pid"
5959

6060
# Wait for spice to be stolen by the Harkonnen
61-
sleep 3
61+
sleep 5
6262
# bar should now have detected the loss of spice and be in restart
6363
run "initctl status"
6464
assert_status "bar" "restart"

0 commit comments

Comments
 (0)