zephyr/tests/subsys
Jakub Rzeszutko ea9fe2f5ec tests: shell_flash: fix test case scenario
The previous test had two defects. First, the shell command was called
before the backend was initialized.

Second, the test compared the string from shell's backend buffer with
the reference string using strncmp function. This test result was very
susceptible to the time when it was performed because of data contained
in the buffer. Apart from expected string there was data like escape
codes needed to control the terminal.

To fix it, function strncmp was replaced by strstr, which
searches for the reference strings regardless of the characters
controlling the terminal.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordisemi.no>
2020-08-05 12:01:14 +02:00
..
canbus zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dfu boards: dts: Fix broken link in comment 2020-07-31 09:00:32 -05:00
fs shell: correct build-in commands definition 2020-07-31 11:54:34 +02:00
jwt tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00
logging zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
openthread tests: openthread: Test passing net_pkt to OpenThread thread 2020-06-18 19:37:06 +02:00
settings boards: dts: Fix broken link in comment 2020-07-31 09:00:32 -05:00
shell tests: shell_flash: fix test case scenario 2020-08-05 12:01:14 +02:00
storage storage/stream: allow NULL data pointer 2020-06-22 14:36:05 +02:00
usb zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00