X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftrace_matches;h=ae838fba66adf7fc8d124d9a87b65f79ceea1a0a;hb=1ee0e522631bccee196eb95eca198a3252fe234f;hp=c2135c1801a5886bdc34308b0a6a456972f5a36b;hpb=1518fa0fad67101416c2def6b1c88ec767e8b5eb;p=ust.git diff --git a/tests/trace_matches b/tests/trace_matches index c2135c1..ae838fb 100755 --- a/tests/trace_matches +++ b/tests/trace_matches @@ -1,6 +1,8 @@ #!/bin/bash -RUNLTTV=~/devel/lttv/runlttv +if [ -z "$RUNLTTV" ]; then + RUNLTTV=~/devel/lttv/runlttv +fi function error() { echo "$0: $@" >/dev/stderr @@ -50,6 +52,7 @@ if [ -z "$expected_count" ]; then if [ "$cnt" -eq "0" ]; then echo "ERROR" echo "Did not find at least one instance of this event ($cnt)" + exit 1 else echo "Success" exit 0