summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-26 15:12:07 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-26 15:12:07 +0100
commit7d7d597afd0a562916f106d259f4ff78383f9631 (patch)
treec7c188f5905310331a31e6e70aa87e3d72089d17 /check
parent712ac2bcd856c864e34c337fc23fe86216a88049 (diff)
downloadmorph-7d7d597afd0a562916f106d259f4ff78383f9631.tar.gz
Separate tests that need to be run as root in their own directory
Diffstat (limited to 'check')
-rwxr-xr-xcheck4
1 files changed, 4 insertions, 0 deletions
diff --git a/check b/check
index 5fe8df0f..0b37fb58 100755
--- a/check
+++ b/check
@@ -21,6 +21,10 @@ set -e
python setup.py clean check
cmdtest tests
+if [ $(whoami) = root ] && command -v mkfs.btrfs > /dev/null
+then
+ cmdtest tests.as-root
+fi
if [ -d .git ];
then