mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Fix device_test to properly fail for non-root user.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user