Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Oct 28, 2024
1 parent ca660fd commit f8967d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 33 deletions.
24 changes: 0 additions & 24 deletions misc/discoverynode/testing/e2e/discovery_node_config.json

This file was deleted.

13 changes: 6 additions & 7 deletions misc/discoverynode/testing/e2e/test_local
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
#!/bin/bash -e

set -x
ROOT_DIR=$(dirname $(realpath $0))

export DN_SITE_PATH=$(realpath site_model)
export DN_TARGET=$1
export DN_SITE_PATH=$(realpath $1)
export DN_TARGET=//mqtt/localhost

if [[ -z $DN_TARGET ]]; then
echo "Usage $0 PROJECT_SPEC [TEST_REGEX]"
if [[ -z $DN_SITE_PATH ]]; then
echo "Usage $0 SITE_PATH [TEST_REGEX]"
exit 1
fi

if [[ -n $2 ]]; then
if [[ $2 -ne "" ]]; then
PYTEST_TARGET="-k $2"
fi

echo Building device and node containers...
bash $ROOT_DIR/../docker/bacnet_device/build.sh
bash $ROOT_DIR/../docker/discovery_node/build.sh

Expand Down
4 changes: 2 additions & 2 deletions misc/discoverynode/testing/e2e/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ def test_sequencer(new_site_model, docker_devices, discovery_node):
)

result = run(
f"bin/sequencer -v {SITE_PATH} {TARGET} GAT-1 scan_single_future"
f"bin/sequencer -v {SITE_PATH} {TARGET} GAT-1 single_scan_future"
)

assert "RESULT pass discovery.scan scan_single_future" in str(result.stdout), "result is pass (note this test can be flakey)"
assert "RESULT pass discovery.scan single_scan_future" in str(result.stdout), "result is pass (note this test can be flakey)"


@pytest.fixture
Expand Down

0 comments on commit f8967d8

Please sign in to comment.