Commit f0f5913e authored by Milan Broz's avatar Milan Broz

Fix device_test to properly fail for non-root user.

parent 17aefd33
......@@ -70,12 +70,12 @@ check_sector_size() # $1 expected sector size
fi
}
dm_crypt_features
if [ $(id -u) != 0 ]; then
skip "You must be root to run this test, test skipped."
fi
dm_crypt_features
[ ! -d $MNT_DIR ] && mkdir $MNT_DIR
echo "[1] Using tmpfs for image"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment