diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-02-01 01:57:20 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-22 15:56:53 +0200 |
commit | da3792870721d0f375a26609ad7fb4bdb329098c (patch) | |
tree | 1d42e5720c9a23661cb7dc26316ea348409c0839 /kio/tests | |
parent | cb041edbef5ae4894559ed9307968b7b1f4a8b07 (diff) | |
download | tdelibs-da3792870721d0f375a26609ad7fb4bdb329098c.tar.gz tdelibs-da3792870721d0f375a26609ad7fb4bdb329098c.zip |
testing: Run tests that use DCOP in a temporary home
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit df203a23f4d96fae5fbc61bb180c4db8f63e63ae)
Diffstat (limited to 'kio/tests')
-rw-r--r-- | kio/tests/kmimetypetest.sh.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kio/tests/kmimetypetest.sh.cmake b/kio/tests/kmimetypetest.sh.cmake index d4030c57d..e86d85665 100644 --- a/kio/tests/kmimetypetest.sh.cmake +++ b/kio/tests/kmimetypetest.sh.cmake @@ -1,10 +1,10 @@ #!/bin/sh -# create profile for test -KDEHOME=@CMAKE_CURRENT_BINARY_DIR@/profile -mkdir $KDEHOME $KDEHOME/share -ln -s @CMAKE_SOURCE_DIR@/mimetypes $KDEHOME/share/mimelnk -export KDEHOME +# create temporary home +HOME=@CMAKE_CURRENT_BINARY_DIR@/test-home +mkdir $HOME $HOME/.trinity $HOME/.trinity/share +ln -s @CMAKE_SOURCE_DIR@/mimetypes $HOME/.trinity/share/mimelnk +export HOME # run dcop server ../../dcop/dcopserver --nofork & @@ -19,5 +19,5 @@ STATE=$? # cleanup kill $DCOP_SERVER_PID -rm -fr $KDEHOME +rm -fr test-home exit $STATE |