summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/damon/_common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/damon/_common.sh')
-rw-r--r--tools/testing/selftests/damon/_common.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/testing/selftests/damon/_common.sh b/tools/testing/selftests/damon/_common.sh
new file mode 100644
index 000000000000..0279698f733e
--- /dev/null
+++ b/tools/testing/selftests/damon/_common.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+check_dependencies()
+{
+ if [ $EUID -ne 0 ]
+ then
+ echo "Run as root"
+ exit $ksft_skip
+ fi
+}