Fix tests: snapshot size validation failure runs too many test cases
[lttng-tools.git] / tests / regression / tools / snapshots / ust_test
index 1e01eb21e2bf1b0c5d2a84677893985ca42b5dad..7540be2d490f1074ff4a74204295e7004560c04d 100755 (executable)
@@ -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
 
This page took 0.022988 seconds and 4 git commands to generate.