X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=c17eb221c5a6e085fc1b443227eda49361c30b5f;hb=efef32e9dabe51901ea2a0d1f19c69a9c37997eb;hp=0278bcf5e8eebc006bb1e2d7b10fc39e4e8e1f7e;hpb=27b667f7fccef66cc3490615757d969191df3d94;p=lttng-tools.git diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 0278bcf5e..c17eb221c 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -66,6 +66,7 @@ function full_cleanup () # The '-' before the pid number ($$) indicates 'kill' to signal the # whole process group. trap - SIGTERM && kill -- -$$ + exit 1 } function null_pipes () @@ -899,7 +900,14 @@ function create_lttng_session () local trace_path=$4 local opt=$5 - $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $sess_name -o $trace_path $opt > $OUTPUT_DEST + if [ -z "$trace_path" ]; then + # Use lttng-sessiond default output. + trace_path="" + else + trace_path="-o $trace_path" + fi + + $TESTDIR/../src/bin/lttng/$LTTNG_BIN create "$sess_name" $trace_path $opt 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST ret=$? if [ $expected_to_fail -eq "1" ]; then test "$ret" -ne "0"