- Add missing dependencies for testing, and enable test bcond (bsc#1188085) - Add patch to properly skip getekcertificate if curl is missing 0001-tests-getekcertificate.sh-Skip-the-test-if-curl-is-n.patch OBS-URL: https://build.opensuse.org/request/show/987836 OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=88
24 lines
933 B
Diff
24 lines
933 B
Diff
From a10fd03a8d62226e798b8338c6caf73195e64557 Mon Sep 17 00:00:00 2001
|
|
From: Alberto Planas <aplanas@suse.com>
|
|
Date: Fri, 8 Jul 2022 10:09:24 +0200
|
|
Subject: [PATCH 1/1] tests/getekcertificate.sh: Skip the test if curl is not
|
|
present
|
|
|
|
Signed-off-by: Alberto Planas <aplanas@suse.com>
|
|
---
|
|
test/integration/tests/getekcertificate.sh | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
Index: tpm2-tools-5.2/test/integration/tests/getekcertificate.sh
|
|
===================================================================
|
|
--- tpm2-tools-5.2.orig/test/integration/tests/getekcertificate.sh
|
|
+++ tpm2-tools-5.2/test/integration/tests/getekcertificate.sh
|
|
@@ -19,6 +19,7 @@ start_up
|
|
# Check connectivity
|
|
if [ -z "$(curl -V 2>/dev/null)" ]; then
|
|
echo "curl is not not installed. Skipping connection check."
|
|
+ exit 077
|
|
else
|
|
if [ "$(curl --silent --output /dev/null --write-out %{http_code} \
|
|
'https://ekop.intel.com/')" != '200' ]; then
|