Tests: use babeltrace2 for all tests
[lttng-tools.git] / tests / destructive / metadata-regeneration
index b81e7af32d22d1c1614f8c55409392d61e28711f..449dc05be7749d4ecc0b1360b6a9e7f8153945c2 100755 (executable)
@@ -38,16 +38,14 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
 
 print_test_banner "$TEST_DESC"
 
+bail_out_if_no_babeltrace
+
+
 function validate_trace_date
 {
        local test_date=$1
        local trace_path=$2
 
 function validate_trace_date
 {
        local test_date=$1
        local trace_path=$2
 
-       which $BABELTRACE_BIN >/dev/null
-       if [ $? -ne 0 ]; then
-           skip 0 "Babeltrace binary not found. Skipping trace validation"
-       fi
-
        res=$($BABELTRACE_BIN --clock-date $trace_path 2>/dev/null | head -1 | grep $test_date)
        if [ $? -eq 0 ]; then
                pass "Validate trace at date $test_date"
        res=$($BABELTRACE_BIN --clock-date $trace_path 2>/dev/null | head -1 | grep $test_date)
        if [ $? -eq 0 ]; then
                pass "Validate trace at date $test_date"
This page took 0.023771 seconds and 4 git commands to generate.