diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-12-06 10:50:13 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-12-06 10:50:13 +0100 |
commit | 19f44e5ff3756172540e768fc0d08d761f0c374e (patch) | |
tree | 962f74609254b68bdf67dbd25e91421fbaedfbce /tdewallet/backend/tests/backendtest.sh | |
parent | 1f1bd93ca8a699e5acae0b9dc7d9ee25189954d9 (diff) | |
download | tdelibs-19f44e5ff3756172540e768fc0d08d761f0c374e.tar.gz tdelibs-19f44e5ff3756172540e768fc0d08d761f0c374e.zip |
tests: Wait for the dcop server to be ready.
Use a separate ICEAUTHORITY for tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdewallet/backend/tests/backendtest.sh')
-rw-r--r-- | tdewallet/backend/tests/backendtest.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tdewallet/backend/tests/backendtest.sh b/tdewallet/backend/tests/backendtest.sh index d3a6ef0e1..d4f1ba686 100644 --- a/tdewallet/backend/tests/backendtest.sh +++ b/tdewallet/backend/tests/backendtest.sh @@ -3,11 +3,16 @@ # create temporary home export HOME=$PWD/test-home mkdir $HOME +export ICEAUTHORITY=$HOME/.ICEauthority # run dcop server ../../../dcop/dcopserver --nofork & DCOP_SERVER_PID=$! +while ! ../../../dcop/dcopserver --serverid 2>/dev/null; do + sleep 2 +done + # perform test ./backendtest STATE=$? |