Fix tests: snapshot size validation failure runs too many test cases
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 28 Mar 2019 15:18:38 +0000 (11:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 29 Mar 2019 16:01:23 +0000 (12:01 -0400)
The snapshot max size test is reported as both passing and failing
when the test case fails.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/snapshots/ust_test

index 755cef9e02670f02e21f58815fbe95513b032a35..e9df10cdd31e27be1b7640808fbe89bd8f0ac422 100755 (executable)
@@ -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
 
This page took 0.025637 seconds and 4 git commands to generate.