Skip to content

Commit

Permalink
fmf: Strengthen integration test
Browse files Browse the repository at this point in the history
Enable `pipefail` shell option.

Reduce timeout, this should take not even a second.
  • Loading branch information
martinpitt committed Oct 3, 2024
1 parent 7bbb4cd commit 6dc7cd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/main.fmf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6dc7cd6

Please sign in to comment.