Skip to content

Commit aaffcf3

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

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ zpc_()
348348

349349
zpc_cli_()
350350
{
351-
log_ "TODO: Fix console that eat some chars, and discard next workaround"
352-
log_ "TODO: https://github.com/SiliconLabsSoftware/z-wave-engine-application-layer/issues/30"
351+
# log_ "TODO: Fix console that eat some chars, and discard next workaround"
352+
# log_ "TODO: https://github.com/SiliconLabsSoftware/z-wave-engine-application-layer/issues/30"
353353
if ! true ; then
354354
screen -S "$name" -p "zpc" -t zpc -X stuff "$@^M"
355355
else
@@ -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"
@@ -649,12 +650,12 @@ play_node_s2v2_()
649650
play_node_()
650651
{
651652
local node="$1"
652-
if true ; then
653+
if ! true ; then
653654
play_net_add_node_ $node
654655
play_net_remove_node_ $node
655656
fi
656657

657-
if true ; then
658+
if ! true ; then
658659
play_net_add_node_ $node
659660
play_node_${node}_
660661
play_net_remove_node_ $node
@@ -673,7 +674,7 @@ play_nodes_()
673674
{
674675
local nodes=(
675676
soc_switch_on_off
676-
soc_multilevel_sensor
677+
# soc_multilevel_sensor # TODO: Should wait before NLS check
677678
soc_door_lock_keypad
678679
)
679680
for node in ${nodes[@]} ; do

0 commit comments

Comments
 (0)