Skip to content

Commit f260247

Browse files
committed
fix(s2v2): Break on check
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent c344e73 commit f260247

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

scripts/tests/z-wave-stack-binaries-test.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ play_node_soc_door_lock_keypad_()
614614
play_node_s2v2_()
615615
{
616616
local task="s2v2"
617-
log_ "$task: TODO: https://github.com/Z-Wave-Alliance/z-wave-stack/pull/700"
617+
# log_ "$task: TODO: https://github.com/Z-Wave-Alliance/z-wave-stack/pull/700"
618618
local type="OnOff"
619619
node_cli_ "$node" H
620620
node_cli_ "$node" n
@@ -631,15 +631,16 @@ play_node_s2v2_()
631631
grep 'on_nls_state_set_v2_send_complete' "${zpc_log}" || exit_ 20
632632
grep 'on_nls_state_get_v2_send_complete' "${zpc_log}" || exit_ 21
633633
zpc_cli_ "attribute_store_log_search" "NLS"
634-
zpc_cli_ "attribute_store_log_search" "NLS state" \
635-
&& grep 'NLS state ...............................................' \
636-
"${zpc_log}" \
637-
|| echo TODO exit_ 22 # 2 expected
638-
zpc_cli_ "attribute_store_log_search" "NLS support" \
639-
&& grep 'NLS support .*' \
640-
"${zpc_log}" \
641-
|| echo TODO exit_ 23
642-
634+
635+
zpc_cli_ "attribute_store_log_search" "NLS state"
636+
grep -2 -E ".* NodeID [.]*[ ]* ${nodeid}" "${zpc_log}" \
637+
| grep -E 'NLS state [.]*' \
638+
|| exit_ 22 # 2 expected
639+
640+
zpc_cli_ "attribute_store_log_search" "NLS support"
641+
grep -3 -E ".* NodeID [.]*[ ]* ${nodeid}" "${zpc_log}" \
642+
| grep -E 'NLS support [.]*.*1.*' \
643+
|| exit_ 23
643644
pub="ucl/by-unid/$nodeunid/State/Commands/DiscoverNeighbors"
644645
message='{}'
645646
pub_ "$pub" "$message"

0 commit comments

Comments
 (0)