Skip to content

Commit 6dc7cd6

Browse files
committed
fmf: Strengthen integration test
Enable `pipefail` shell option. Reduce timeout, this should take not even a second.
1 parent 7bbb4cd commit 6dc7cd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/main.fmf

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
summary: smoke test
2-
duration: 10m
2+
duration: 1m
33
require:
44
- python3-dbusmock
55
test: |
6-
set -eux
6+
set -eux -o pipefail
77
python3 -m dbusmock com.example.Foo / com.example.Foo.Manager &
88
MOCK=$!
99
trap "kill $MOCK; wait $MOCK || true" EXIT INT QUIT PIPE
1010

11-
until busctl list --user | grep -q com.example.Foo; do sleep 0.1; done
11+
until busctl list --user | grep -q com.example.Foo; do sleep 0.5; done
1212

1313
busctl call --user com.example.Foo / org.freedesktop.DBus.Mock AddMethod sssss '' 'Ping' '' '' ''
1414
busctl introspect --user com.example.Foo / com.example.Foo.Manager | grep Ping

0 commit comments

Comments
 (0)