Skip to content

Commit af66ad0

Browse files
committed
fix: Update test execution logic in testkit.sh to capture exit codes
1 parent 7d96362 commit af66ad0

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

testkit-backend/testkit.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ pip install -r requirements.txt
3333

3434
echo "Starting tests..."
3535

36-
python3 -m unittest tests.neo4j.test_authentication.TestAuthenticationBasic || exit 1
37-
echo "TestAuthenticationBasic Done"
38-
python3 -m unittest tests.neo4j.test_bookmarks.TestBookmarks || exit 1
39-
echo "TestBookmarks Done"
40-
python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_iteration_nested || exit 1
41-
echo "TestSessionRun Done"
42-
#python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_recover_from_fail_on_streaming|| true
43-
#echo "TestSessionRun Done"
36+
EXIT_CODE=0
37+
38+
python3 -m unittest tests.neo4j.test_authentication.TestAuthenticationBasic || EXIT_CODE=1
39+
40+
python3 -m unittest tests.neo4j.test_bookmarks.TestBookmarks || EXIT_CODE=1
41+
42+
python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_iteration_nested || EXIT_CODE=1
43+
44+
# Uncomment to run this test as well
45+
# python3 -m unittest tests.neo4j.test_session_run.TestSessionRun.test_recover_from_fail_on_streaming || EXIT_CODE=1
46+
47+
exit $EXIT_CODE
4448

0 commit comments

Comments
 (0)