X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fltt-sessiond%2Frun.sh;h=0f89d8b35fc1da70d277e10c5f1b2d851734a55d;hb=e953ef25cbc11fb112aa2e23bf2d44867fe585ed;hp=f8bdf7fef006dea0ad771658846e85f0ef55bdf5;hpb=6e0ca3c2c2afedf4a944cec63a6a566f7014c93f;p=lttng-tools.git diff --git a/tests/ltt-sessiond/run.sh b/tests/ltt-sessiond/run.sh index f8bdf7fef..0f89d8b35 100755 --- a/tests/ltt-sessiond/run.sh +++ b/tests/ltt-sessiond/run.sh @@ -25,7 +25,7 @@ SESSIOND_BIN="$PWD/../../ltt-sessiond/ltt-sessiond" LTTNG_BIN="$PWD/../../lttng/lttng" #SESSIOND_ARGS="-c $SESSIOND_CLIENT_SOCK_PATH -a $SESSIOND_APPS_SOCK_PATH" SESSIOND_ARGS="" -SESSION_ID_REGEX="[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}" +SESSION_ID_REGEX=".[[:alnum:]]{8}" function clean_exit() { @@ -93,7 +93,7 @@ function test_session_same_name() { lttng_create_session "test-same" lttng_create_session "test-same" - if [ $LTTNG_RET_CODE -ne 1 ]; then + if [ $LTTNG_RET_CODE -ne 0 ]; then echo "[-] Session with the same name: FAILED!" printf "Two session having the same name NOT ALLOWED\n" clean_exit 1