aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2024-04-04 15:21:04 +0200
committerMilan Broz <gmazyland@gmail.com>2024-04-04 18:34:19 +0000
commit4b0ae54379aa313ffbecd57343d5c2001f71768b (patch)
tree8f736933476c953fd3fb52d704c76e657c703e98
parent69920581a34b7daa7db8f53334276f803509019b (diff)
downloadcryptsetup-4b0ae54379aa313ffbecd57343d5c2001f71768b.tar.gz
tests: print OPAL device parameters in test envirenment if specified
-rwxr-xr-xtests/00modules-test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/00modules-test b/tests/00modules-test
index f816b80c..e9876cd0 100755
--- a/tests/00modules-test
+++ b/tests/00modules-test
@@ -34,6 +34,11 @@ pversion integritysetup
$CRYPTSETUP_PATH/cryptsetup --help | sed -n '/optional key file for/,$p' | tail -n +3
}
+if [ -b "$OPAL2_DEV" ]; then
+ echo "OPAL test device:"
+ lsblk "$OPAL2_DEV" -d -o NAME,TRAN,MODEL,REV,MIN-IO,PHY-SEC,LOG-SEC,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO 2>/dev/null
+fi
+
[ $(id -u) != 0 ] && exit 77
modprobe dm-crypt >/dev/null 2>&1