From 6dc7cd6fa9879ac2e6cc57187cf8ba537bc8878f Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 3 Oct 2024 09:16:55 +0200 Subject: [PATCH] fmf: Strengthen integration test Enable `pipefail` shell option. Reduce timeout, this should take not even a second. --- tests/main.fmf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/main.fmf b/tests/main.fmf index 7974a7cc..950dbfc5 100644 --- a/tests/main.fmf +++ b/tests/main.fmf @@ -1,14 +1,14 @@ summary: smoke test -duration: 10m +duration: 1m require: - python3-dbusmock test: | - set -eux + set -eux -o pipefail python3 -m dbusmock com.example.Foo / com.example.Foo.Manager & MOCK=$! trap "kill $MOCK; wait $MOCK || true" EXIT INT QUIT PIPE - until busctl list --user | grep -q com.example.Foo; do sleep 0.1; done + until busctl list --user | grep -q com.example.Foo; do sleep 0.5; done busctl call --user com.example.Foo / org.freedesktop.DBus.Mock AddMethod sssss '' 'Ping' '' '' '' busctl introspect --user com.example.Foo / com.example.Foo.Manager | grep Ping