Skip to content

Commit edfc428

Browse files
exit if failed
1 parent 8822250 commit edfc428

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

tests/stream/test_compatibility/basic_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
set -e
12
CUR_DIR="$GITHUB_WORKSPACE/tests/stream/test_compatibility"
23
docker-compose -f "$CUR_DIR/configs/docker-compose.yaml" up -d
34
docker ps

tests/stream/test_compatibility/extra_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
set -e
12
CUR_DIR="$GITHUB_WORKSPACE/tests/stream/test_compatibility"
23
docker-compose -f "$CUR_DIR/configs/docker-compose.yaml" up -d
34
docker ps

tests/stream/test_compatibility/prepare_data.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
set -e
12
CUR_DIR="$GITHUB_WORKSPACE/tests/stream/test_compatibility"
23
docker-compose -f "$CUR_DIR/configs/docker-compose.yaml" up -d
34
docker ps

tests/stream/test_compatibility/run_compatibility_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def run_cmd(self, cmd, expect=None, query_id=None, wait=1, query_time=None, **kw
108108
type_row = [t[1] for t in next(rows)]
109109
for i, expect_row in enumerate(expect):
110110
row = next(rows)
111-
assert check_list_eq(row, expect_row, type_row), f"{cmd}\n row [{i}] {row} != {expect_row}"
111+
self.assertTrue(check_list_eq(row, expect_row, type_row), f"{cmd}\n row [{i}] {row} != {expect_row}")
112112
client.disconnect()
113113
killer.cancel()
114114
time.sleep(wait)

0 commit comments

Comments
 (0)