summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/vm/charge_reserved_hugetlb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/vm/charge_reserved_hugetlb.sh')
-rw-r--r--tools/testing/selftests/vm/charge_reserved_hugetlb.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/charge_reserved_hugetlb.sh b/tools/testing/selftests/vm/charge_reserved_hugetlb.sh
index 18d33684faad..fe8fcfb334e0 100644
--- a/tools/testing/selftests/vm/charge_reserved_hugetlb.sh
+++ b/tools/testing/selftests/vm/charge_reserved_hugetlb.sh
@@ -1,11 +1,14 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
+# Kselftest framework requirement - SKIP code is 4.
+ksft_skip=4
+
set -e
if [[ $(id -u) -ne 0 ]]; then
echo "This test must be run as root. Skipping..."
- exit 0
+ exit $ksft_skip
fi
fault_limit_file=limit_in_bytes