local test_date=$1
local trace_path=$2
- res=$($BABELTRACE_BIN --clock-date "$trace_path" 2>/dev/null | head -1 | grep $test_date)
+ res=$(_run_babeltrace_cmd --clock-date "$trace_path" | head -1 | grep $test_date)
if [ $? -eq 0 ]; then
pass "Validate trace at date $test_date"
ret=0
rm -f "${file_sync_before_last}"
}
-if [ "$(id -u)" == "0" ]; then
- isroot=1
-else
- isroot=0
-fi
-
if ! destructive_tests_enabled ; then
echo 'Please make sure that ntp is not running while executing this test'
skip 0 "You need to set the LTTNG_ENABLE_DESTRUCTIVE_TESTS environment variable to \"will-break-my-system\" to run this test" $NUM_TESTS
exit 0
fi
-skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
+check_skip_kernel_test $NUM_TESTS "Skipping all tests." ||
{
original_date=$(date)
start_lttng_relayd "-o $TRACE_PATH"