diff options
author | Alexander Golubev <[email protected]> | 2016-12-18 16:42:50 +0300 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-01-29 02:27:15 +0100 |
commit | f2d8e88f099f908075d3d7b166fdb40d9be6c1c5 (patch) | |
tree | 07b9b893ef92043960e0c6148937146c05c7ea7b /dcop/tests/generate.pl | |
parent | 57e73e9e4c61f9cfd9cc03fbbfa5970452e0e8a4 (diff) | |
download | tdelibs-f2d8e88f099f908075d3d7b166fdb40d9be6c1c5.tar.gz tdelibs-f2d8e88f099f908075d3d7b166fdb40d9be6c1c5.zip |
dcop/tests: run dcop tests in a safer manner
Signed-off-by: Alexander Golubev <[email protected]>
Diffstat (limited to 'dcop/tests/generate.pl')
-rwxr-xr-x | dcop/tests/generate.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dcop/tests/generate.pl b/dcop/tests/generate.pl index 9ef1f13fc..e7e8d4fd6 100755 --- a/dcop/tests/generate.pl +++ b/dcop/tests/generate.pl @@ -11,7 +11,8 @@ my $OBJECT_NAME = 'TestInterface'; sub shell_header { - print SHELL "TEST_APP=\`$DCOP 'TestApp-*'\`\n"; + print SHELL "TEST_APP=\"\${DCOP_TEST_PID:+TestApp-\$DCOP_TEST_PID\}\"\n" . + "TEST_APP=\"\${TEST_APP:-\$($DCOP 'TestApp-*')}\"\n"; } sub shell_footer { print SHELL "$DCOP $TEST_APP 'MainApplication-Interface' quit"; |