summaryrefslogtreecommitdiff
path: root/tests/igt_command_line.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/igt_command_line.sh')
-rwxr-xr-xtests/igt_command_line.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/igt_command_line.sh b/tests/igt_command_line.sh
index e05ec34c..408d965f 100755
--- a/tests/igt_command_line.sh
+++ b/tests/igt_command_line.sh
@@ -100,6 +100,10 @@ check_test ()
./$test --run-subtest invalid-subtest > /dev/null 2>&1 && fail $test
}
+if [ "$EUID" -eq 0 ]; then
+ fail "Don't run $0 as root. It executes igt_fixture blocks."
+fi
+
TESTLISTFILE="$tests_dir/test-list.txt"
if [ ! -r "$TESTLISTFILE" ]; then
tests_dir="tests"