diff mbox series

[kvm-unit-tests,GIT,PULL,04/12] configure: s390x: Check if the host key document exists

Message ID 20210622082042.13831-5-frankja@linux.ibm.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests,GIT,PULL,01/12] s390x: sie: Only overwrite r3 if it isn't needed anymore | expand

Commit Message

Janosch Frank June 22, 2021, 8:20 a.m. UTC
I'd rather have a readable error message than make failing the build
with cryptic errors.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/configure b/configure
index b8442d61..71aaad43 100755
--- a/configure
+++ b/configure
@@ -137,6 +137,11 @@  while [[ "$1" = -* ]]; do
     esac
 done
 
+if [ -n "$host_key_document" ] && [ ! -f "$host_key_document" ]; then
+    echo "Host key document doesn't exist at the specified location."
+    exit 1
+fi
+
 if [ "$erratatxt" ] && [ ! -f "$erratatxt" ]; then
     echo "erratatxt: $erratatxt does not exist or is not a regular file"
     exit 1