diff --git a/test/tests/cancel-reducer.sh b/test/tests/cancel-reducer.sh index 7ff889b66c9..fea65e32ee3 100644 --- a/test/tests/cancel-reducer.sh +++ b/test/tests/cancel-reducer.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb, ScheduleToken}; diff --git a/test/tests/default-module-clippy.sh b/test/tests/default-module-clippy.sh index c36ba5ab42e..57b0382da10 100644 --- a/test/tests/default-module-clippy.sh +++ b/test/tests/default-module-clippy.sh @@ -9,7 +9,5 @@ set -euox pipefail source "./test/lib.include" -reset_project - cd "$PROJECT_PATH" run_test cargo clippy -- -D warnings diff --git a/test/tests/detect-wasm-bindgen.sh b/test/tests/detect-wasm-bindgen.sh index 15e8ba9463e..b8d5c0c3c92 100644 --- a/test/tests/detect-wasm-bindgen.sh +++ b/test/tests/detect-wasm-bindgen.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{log, spacetimedb}; diff --git a/test/tests/filtering.sh b/test/tests/filtering.sh index f54eb49e396..89cdb94b9df 100644 --- a/test/tests/filtering.sh +++ b/test/tests/filtering.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb, Identity}; diff --git a/test/tests/module-nested-op.sh b/test/tests/module-nested-op.sh index 2d3f098ae85..976abaecb69 100644 --- a/test/tests/module-nested-op.sh +++ b/test/tests/module-nested-op.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb}; diff --git a/test/tests/namespace-custom-cs.sh b/test/tests/namespace-custom-cs.sh index 84345a80358..f884bc78a90 100644 --- a/test/tests/namespace-custom-cs.sh +++ b/test/tests/namespace-custom-cs.sh @@ -12,7 +12,6 @@ source "./test/lib.include" TMP_DIR=$(mktemp -d) NAMESPACE=$(random_string) -reset_project run_test cargo run generate --out-dir "${TMP_DIR}" --lang cs --namespace "${NAMESPACE}" --project-path "${PROJECT_PATH}" LINES="$(grep -r -o "namespace ${NAMESPACE}" "${TMP_DIR}" | wc -l | tr -d ' ')" diff --git a/test/tests/namespace-spacetimedb-cs.sh b/test/tests/namespace-spacetimedb-cs.sh index 41b362d9195..e256e12ef00 100644 --- a/test/tests/namespace-spacetimedb-cs.sh +++ b/test/tests/namespace-spacetimedb-cs.sh @@ -12,7 +12,6 @@ source "./test/lib.include" TMP_DIR=$(mktemp -d) NAMESPACE=SpacetimeDB -reset_project run_test cargo run generate --out-dir "${TMP_DIR}" --lang cs --project-path "${PROJECT_PATH}" LINES="$(grep -r -o "namespace ${NAMESPACE}" "${TMP_DIR}" | wc -l | tr -d ' ')" diff --git a/test/tests/new-user-flow.sh b/test/tests/new-user-flow.sh index 65742d9f73e..abc564d58eb 100644 --- a/test/tests/new-user-flow.sh +++ b/test/tests/new-user-flow.sh @@ -10,7 +10,6 @@ set -euox pipefail source "./test/lib.include" ## Create a new spacetimedb rust project -reset_project cargo run identity new --no-email ## Write a spacetimedb rust module diff --git a/test/tests/panic.sh b/test/tests/panic.sh index f6af7ce4d02..537eab8f1bc 100644 --- a/test/tests/panic.sh +++ b/test/tests/panic.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{spacetimedb, println}; use std::cell::RefCell; diff --git a/test/tests/permissions-call.sh b/test/tests/permissions-call.sh index c61a8d6be78..4f72012abcb 100644 --- a/test/tests/permissions-call.sh +++ b/test/tests/permissions-call.sh @@ -12,7 +12,6 @@ source "./test/lib.include" run_test cargo run identity new --no-email IDENT=$(grep IDENTITY "$TEST_OUT" | awk '{print $2}') TOKEN="$(cargo run identity token "$IDENT")" -reset_project run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database sleep 2 DATABASE="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')" diff --git a/test/tests/permissions-describe.sh b/test/tests/permissions-describe.sh index 8f186ea814f..34de3048287 100644 --- a/test/tests/permissions-describe.sh +++ b/test/tests/permissions-describe.sh @@ -10,7 +10,6 @@ set -euox pipefail source "./test/lib.include" run_test cargo run identity new --no-email -reset_project run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database sleep 2 DATABASE="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')" diff --git a/test/tests/permissions-logs.sh b/test/tests/permissions-logs.sh index f28683d458b..533bc545327 100644 --- a/test/tests/permissions-logs.sh +++ b/test/tests/permissions-logs.sh @@ -10,7 +10,6 @@ set -euox pipefail source "./test/lib.include" run_test cargo run identity new --no-email -reset_project run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database sleep 2 DATABASE="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')" diff --git a/test/tests/permissions-publish.sh b/test/tests/permissions-publish.sh index 6a7c913961f..84d98f998fa 100644 --- a/test/tests/permissions-publish.sh +++ b/test/tests/permissions-publish.sh @@ -9,7 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project run_test cargo run identity new --no-email IDENT=$(grep IDENTITY "$TEST_OUT" | awk '{print $2}') run_test cargo run identity set-default "$IDENT" diff --git a/test/tests/register-domain.sh b/test/tests/register-domain.sh index 7b835991a88..9fb9a2c34d3 100644 --- a/test/tests/register-domain.sh +++ b/test/tests/register-domain.sh @@ -9,7 +9,6 @@ set -euox pipefail source "./test/lib.include" RAND_DOMAIN=$(random_string) -reset_project run_test cargo run identity new --no-email diff --git a/test/tests/reverse-dns.sh b/test/tests/reverse-dns.sh index d2b028616da..69306b37def 100644 --- a/test/tests/reverse-dns.sh +++ b/test/tests/reverse-dns.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - RAND=$(random_string) run_test cargo run dns register-tld "$RAND" run_test cargo run publish -s -d "$RAND" --project-path "$PROJECT_PATH" --clear-database diff --git a/test/tests/setname.sh b/test/tests/setname.sh index 4c1c7b53582..b70356db867 100644 --- a/test/tests/setname.sh +++ b/test/tests/setname.sh @@ -11,7 +11,6 @@ source "./test/lib.include" reset_config run_test cargo run identity init-default -reset_project run_test cargo run publish -s -d --project-path "$PROJECT_PATH" --clear-database ADDRESS="$(grep "reated new database" "$TEST_OUT" | awk 'NF>1{print $NF}')" diff --git a/test/tests/sql-format.sh b/test/tests/sql-format.sh index 31c91ac1b00..9cb20d85382 100644 --- a/test/tests/sql-format.sh +++ b/test/tests/sql-format.sh @@ -9,7 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project cat > "${PROJECT_PATH}/src/lib.rs" < "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb}; diff --git a/test/tests/upload-module-1.sh b/test/tests/upload-module-1.sh index 506ef94e02d..a4beee13c2e 100644 --- a/test/tests/upload-module-1.sh +++ b/test/tests/upload-module-1.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb}; diff --git a/test/tests/zz_docker-restart-module.sh b/test/tests/zz_docker-restart-module.sh index 7497ab2532b..3835cb9333c 100644 --- a/test/tests/zz_docker-restart-module.sh +++ b/test/tests/zz_docker-restart-module.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb}; diff --git a/test/tests/zz_docker-restart-repeating-reducer.sh b/test/tests/zz_docker-restart-repeating-reducer.sh index 9ec867ff789..1688af62daa 100644 --- a/test/tests/zz_docker-restart-repeating-reducer.sh +++ b/test/tests/zz_docker-restart-repeating-reducer.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb, Timestamp}; diff --git a/test/tests/zz_docker-restart-sql.sh b/test/tests/zz_docker-restart-sql.sh index 6e6590e4825..83f16253393 100644 --- a/test/tests/zz_docker-restart-sql.sh +++ b/test/tests/zz_docker-restart-sql.sh @@ -9,8 +9,6 @@ set -euox pipefail source "./test/lib.include" -reset_project - cat > "${PROJECT_PATH}/src/lib.rs" << EOF use spacetimedb::{println, spacetimedb};