mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
dm_crypt_features
|
|
||||||
|
|
||||||
if [ $(id -u) != 0 ]; then
|
if [ $(id -u) != 0 ]; then
|
||||||
skip "You must be root to run this test, test skipped."
|
skip "You must be root to run this test, test skipped."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dm_crypt_features
|
||||||
|
|
||||||
[ ! -d $MNT_DIR ] && mkdir $MNT_DIR
|
[ ! -d $MNT_DIR ] && mkdir $MNT_DIR
|
||||||
|
|
||||||
echo "[1] Using tmpfs for image"
|
echo "[1] Using tmpfs for image"
|
||||||
|
|||||||
Reference in New Issue
Block a user