#!/bin/bash
#
-# Copyright (C) 2019 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
#
# SPDX-License-Identifier: LGPL-2.1-only
function signal_cleanup ()
{
stop_lttng_sessiond
- modprobe -r lttng-test
+ modprobe --remove lttng-test
full_cleanup
}
{
local trace_path=$1
set -u
- rm -rf $trace_path/*
+ rm -rf $trace_path
set +u
}
clean_path $TRACE_PATH
done
- rmmod lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
stop_lttng_relayd