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>
Thu, 28 Mar 2019 19:52:47 +0000 (15:52 -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 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.029453 seconds and 4 git commands to generate.