summaryrefslogtreecommitdiff
path: root/tests/slow/test-ciphers-common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/slow/test-ciphers-common.sh')
-rw-r--r--tests/slow/test-ciphers-common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/slow/test-ciphers-common.sh b/tests/slow/test-ciphers-common.sh
index b1a238671a..e8b38c84ed 100644
--- a/tests/slow/test-ciphers-common.sh
+++ b/tests/slow/test-ciphers-common.sh
@@ -74,8 +74,8 @@ if test $ret != 0; then
fi
#SHANI
-$(which lscpu)|grep Flags|grep sha_ni >/dev/null
-if test $? = 0;then
+if (lscpu --version) >/dev/null 2>&1 && \
+ lscpu 2>/dev/null | grep 'Flags:[ ]*sha_ni' >/dev/null; then
GNUTLS_CPUID_OVERRIDE=0x20 ${PROG}
ret=$?
if test $ret != 0; then