Add MBEDTLS_AES_USE_HADWARE_ONLY for test_aesni

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 012e2a8..a3b720a 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -3862,6 +3862,7 @@
 
     msg "build: default config with different AES implementations"
     scripts/config.py set MBEDTLS_AESNI_C
+    scripts/config.py unset MBEDTLS_AES_USE_HARDWARE_ONLY
     scripts/config.py set MBEDTLS_HAVE_ASM
 
     # test the intrinsics implementation
@@ -3880,6 +3881,7 @@
 
     # test the plain C implementation
     scripts/config.py unset MBEDTLS_AESNI_C
+    scripts/config.py unset MBEDTLS_AES_USE_HARDWARE_ONLY
     msg "AES tests, plain C"
     make clean
     make test programs/test/selftest CC=gcc CFLAGS='-O2 -Werror'