From: Jérémie Galarneau Date: Thu, 28 Mar 2019 15:18:38 +0000 (-0400) Subject: Fix tests: snapshot size validation failure runs too many test cases X-Git-Tag: v2.12.0-rc1~630 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b67cdb8c808af540b7c0062e756170238057c6f3;p=lttng-tools.git Fix tests: snapshot size validation failure runs too many test cases The snapshot max size test is reported as both passing and failing when the test case fails. Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test index 1e01eb21e..7540be2d4 100755 --- a/tests/regression/tools/snapshots/ust_test +++ b/tests/regression/tools/snapshots/ust_test @@ -337,10 +337,10 @@ function test_ust_local_snapshot_max_size () if [ "$sum_size_tracefiles" -gt "$max_size" ]; then fail "Tracefiles size sum validation" diag "Tracefiles size sum: $sum_size_tracefiles Expected max: $max_size" + else + pass "Tracefiles size sum validation" fi - pass "Tracefiles size sum validation" - stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session_ok $SESSION_NAME