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.10.7~17 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ce30ae3c6f3b41668b278c9395a129f9eba01934;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 755cef9e0..e9df10cdd 100755 --- a/tests/regression/tools/snapshots/ust_test +++ b/tests/regression/tools/snapshots/ust_test @@ -338,10 +338,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