tpm2-tss-engine/test/failwrite.sh
wangyoukang 0260ffe813 add upstream initial src code
Signed-off-by: wangyoukang <wangyoukang@xfusion.com>
2023-05-17 10:13:46 +08:00

10 lines
187 B
Bash
Executable File

#!/bin/bash
set -eufx
R="$(tpm2tss-genkey -a ecdsa -c nist_p256 -p abc /no/such/file/path 2>&1 || true)"
echo $R
if ! echo $R | grep "Error writing file" >/dev/null; then
exit 1
fi