samples: drivers: crypto: fix test failure

The regular expressions used by this test to determine
success or failure get confounded if the log subsystem
drops the wrong messages due to buffers being full.

Just use minimal logging which synchronously logs
everything.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-01-02 17:22:09 -08:00 committed by Anas Nashif
commit 777213c0fb
3 changed files with 8 additions and 6 deletions

View file

@ -7,3 +7,4 @@ CONFIG_CRYPTO=y
CONFIG_CRYPTO_TINYCRYPT_SHIM=y
CONFIG_CRYPTO_LOG_LEVEL_DBG=y
CONFIG_LOG=y
CONFIG_LOG_MINIMAL=y

View file

@ -1,4 +1,5 @@
CONFIG_LOG=y
CONFIG_LOG_MINIMAL=y
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_BUILTIN=y
CONFIG_MBEDTLS_CFG_FILE="config-tls-generic.h"

View file

@ -15,15 +15,15 @@ tests:
type: multi_line
regex:
- ".*: Cipher Sample"
- ".*main: CBC Mode"
- ".*main: CTR Mode"
- ".*main: CCM Mode"
- ".*: CBC Mode"
- ".*: CTR Mode"
- ".*: CCM Mode"
sample.drivers.crypto.mbedtls.micro:
tags: crypto
harness_config:
type: multi_line
regex:
- ".*: Cipher Sample"
- ".*main: CBC Mode"
- ".*main: CTR Mode"
- ".*main: CCM Mode"
- ".*: CBC Mode"
- ".*: CTR Mode"
- ".*: CCM Mode"