libkcapi/libkcapi-1.0.3-hasher_test_hmaccalc_path.patch
2018-01-16 18:47:27 +01:00

30 lines
840 B
Diff

From ba147c9cce460c29076968c9e9e1a3828c0e9143 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Sat, 13 Jan 2018 14:30:44 +0100
Subject: [PATCH] hasher-test: Search for hmaccalc in full $PATH
Signed-off-by: Stephan Mueller <smueller@chronox.de>
---
test/hasher-test.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/test/hasher-test.sh b/test/hasher-test.sh
index f82182c..65b6da0 100755
--- a/test/hasher-test.sh
+++ b/test/hasher-test.sh
@@ -99,10 +99,11 @@ do
hash=$(basename $i)
hash=${hash%%hmac}
hasher=$i
- i=$(basename $i)
+ t=$(basename $i)
+ i=$(command -v $t)
- [ ! -x "/bin/$i" ] && {
- echo_deact "hmaccalc reference application /bin/$i missing"
+ [ -z "$i" ] && {
+ echo_deact "hmaccalc reference application $t missing"
continue
}