Skip to content

Commit

Permalink
exit if failed
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-cai-timeplus committed Dec 15, 2023
1 parent 8822250 commit edfc428
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/stream/test_compatibility/basic_tests.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -e
CUR_DIR="$GITHUB_WORKSPACE/tests/stream/test_compatibility"
docker-compose -f "$CUR_DIR/configs/docker-compose.yaml" up -d
docker ps
Expand Down
1 change: 1 addition & 0 deletions tests/stream/test_compatibility/extra_tests.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -e
CUR_DIR="$GITHUB_WORKSPACE/tests/stream/test_compatibility"
docker-compose -f "$CUR_DIR/configs/docker-compose.yaml" up -d
docker ps
Expand Down
1 change: 1 addition & 0 deletions tests/stream/test_compatibility/prepare_data.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -e
CUR_DIR="$GITHUB_WORKSPACE/tests/stream/test_compatibility"
docker-compose -f "$CUR_DIR/configs/docker-compose.yaml" up -d
docker ps
Expand Down
2 changes: 1 addition & 1 deletion tests/stream/test_compatibility/run_compatibility_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def run_cmd(self, cmd, expect=None, query_id=None, wait=1, query_time=None, **kw
type_row = [t[1] for t in next(rows)]
for i, expect_row in enumerate(expect):
row = next(rows)
assert check_list_eq(row, expect_row, type_row), f"{cmd}\n row [{i}] {row} != {expect_row}"
self.assertTrue(check_list_eq(row, expect_row, type_row), f"{cmd}\n row [{i}] {row} != {expect_row}")
client.disconnect()
killer.cancel()
time.sleep(wait)
Expand Down

0 comments on commit edfc428

Please sign in to comment.