Skip to content

Commit 3de1305

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

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
@@ -700,7 +700,7 @@ play_node_soc_door_lock_keypad_()
700700
play_node_s2v2_()
701701
{
702702
local task="s2v2"
703-
log_ "$task: TODO: https://github.com/Z-Wave-Alliance/z-wave-stack/pull/700"
703+
# log_ "$task: TODO: https://github.com/Z-Wave-Alliance/z-wave-stack/pull/700"
704704
local type="OnOff"
705705
node_cli_ "$node" H
706706
node_cli_ "$node" n
@@ -717,15 +717,16 @@ play_node_s2v2_()
717717
grep 'on_nls_state_set_v2_send_complete' "${zpc_log}" || exit_ 20
718718
grep 'on_nls_state_get_v2_send_complete' "${zpc_log}" || exit_ 21
719719
zpc_cli_ "attribute_store_log_search" "NLS"
720-
zpc_cli_ "attribute_store_log_search" "NLS state" \
721-
&& grep 'NLS state ...............................................' \
722-
"${zpc_log}" \
723-
|| echo TODO exit_ 22 # 2 expected
724-
zpc_cli_ "attribute_store_log_search" "NLS support" \
725-
&& grep 'NLS support .*' \
726-
"${zpc_log}" \
727-
|| echo TODO exit_ 23
728-
720+
721+
zpc_cli_ "attribute_store_log_search" "NLS state"
722+
grep -2 -E ".* NodeID [.]*[ ]* ${nodeid}" "${zpc_log}" \
723+
| grep -E 'NLS state [.]*' \
724+
|| exit_ 22 # 2 expected
725+
726+
zpc_cli_ "attribute_store_log_search" "NLS support"
727+
grep -3 -E ".* NodeID [.]*[ ]* ${nodeid}" "${zpc_log}" \
728+
| grep -E 'NLS support [.]*.*1.*' \
729+
|| exit_ 23
729730
pub="ucl/by-unid/$nodeunid/State/Commands/DiscoverNeighbors"
730731
message='{}'
731732
pub_ "$pub" "$message"

0 commit comments

Comments
 (0)