diff options
Diffstat (limited to 'test.d/mdsinitrc')
-rwxr-xr-x | test.d/mdsinitrc | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/test.d/mdsinitrc b/test.d/mdsinitrc index d809c24..ee5bb60 100755 --- a/test.d/mdsinitrc +++ b/test.d/mdsinitrc @@ -30,14 +30,20 @@ g= if [ -z "${NO_VALGRIND}" ]; then g="valgrind --leak-check=full --show-leak-kinds=all" fi -$g mds-respawn --interval=10 \ - { sleep 4s } \ - { sleep 1m } \ - { $g mds-echo } \ - & -if which terminator 2>/dev/null >&2; then - exec terminator +if [ -z "${MDS_TEST}" ]; then + $g mds-respawn --interval=10 \ + { sleep 4s } \ + { sleep 1m } \ + { $g mds-echo } \ + & + if which terminator 2>/dev/null >&2; then + exec terminator + else + exec xterm + fi +elif [ "${MDS_TEST}" = kkbd ]; then + exec $g mds-kkbd else - exec xterm + echo 'Bad value of ${MDS_TEST}' fi |