Fix tests: snapshot size validation failure runs too many test cases
[lttng-tools.git] / 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.023488 seconds and 4 git commands to generate.