mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
tests: prune cat (ab)uses
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
@@ -28,7 +28,7 @@ pamservice="pam_zfs_key_test"
|
||||
pamconfig="/etc/pam.d/${pamservice}"
|
||||
|
||||
function keystatus {
|
||||
log_must [ "$(zfs list -Ho keystatus "$TESTPOOL/pam/${username}")" == "$1" ]
|
||||
log_must [ "$(zfs list -Ho keystatus "$TESTPOOL/pam/${username}")" = "$1" ]
|
||||
}
|
||||
|
||||
function genconfig {
|
||||
@@ -42,6 +42,6 @@ function rmconfig {
|
||||
}
|
||||
|
||||
function references {
|
||||
log_must [ "$(cat "${runstatedir}/$(id -u ${username})")" == "$1" ]
|
||||
log_must [ "$(<"${runstatedir}/$(id -u ${username})")" = "$1" ]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user