Skip to content

Commit

Permalink
ci: [torrust#203] stop containers running E2E tests when tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Nov 22, 2023
1 parent dbf02c4 commit 1b3d5a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ TORRUST_INDEX_E2E_SHARED=true \
TORRUST_INDEX_E2E_PATH_CONFIG="./share/default/config/index.e2e.container.mysql.toml" \
TORRUST_INDEX_E2E_DB_CONNECT_URL="mysql://root:root_secret_password@localhost:3306/torrust_index_e2e_testing" \
cargo test \
|| exit 1
|| { ./contrib/dev-tools/container/e2e/mysql/e2e-env-down.sh; exit 1; }

# Stop E2E testing environment
./contrib/dev-tools/container/e2e/mysql/e2e-env-down.sh || exit 1

2 changes: 1 addition & 1 deletion contrib/dev-tools/container/e2e/sqlite/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ TORRUST_INDEX_E2E_SHARED=true \
TORRUST_INDEX_E2E_PATH_CONFIG="./share/default/config/index.e2e.container.sqlite3.toml" \
TORRUST_INDEX_E2E_DB_CONNECT_URL="sqlite://./storage/index/lib/database/e2e_testing_sqlite3.db?mode=rwc" \
cargo test \
|| exit 1
|| { ./contrib/dev-tools/container/e2e/sqlite/e2e-env-down.sh; exit 1; }

# Stop E2E testing environment
./contrib/dev-tools/container/e2e/sqlite/e2e-env-down.sh || exit 1

0 comments on commit 1b3d5a0

Please sign in to comment.