[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: misc/sort-exit-early: do not run as root.
From: |
Nick Alcock |
Subject: |
[PATCH] tests: misc/sort-exit-early: do not run as root. |
Date: |
Wed, 29 Aug 2012 23:02:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
This test requires an unwritable input and an unreadable output,
so will fail if the testsuite is being run as root, and should
not be run in this case.
---
tests/misc/sort-exit-early | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/misc/sort-exit-early b/tests/misc/sort-exit-early
index 7470aad..b83a489 100755
--- a/tests/misc/sort-exit-early
+++ b/tests/misc/sort-exit-early
@@ -19,6 +19,8 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ sort
+skip_if_root_
+
# Check output is writable before starting to sort
touch input
chmod a-w input
--
1.7.11.2.155.g5ceeb62
- [PATCH] tests: misc/sort-exit-early: do not run as root.,
Nick Alcock <=