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.9.12~12 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=508fbb6503a6bc002bf34c08ffce5a2ed03fe9aa;hp=690eb9a92ad23b8578c51a7e3b6c1782321bc9b7;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