Skip to content

test: fix broken deploy-test path in test-setup.sh#146

Open
mazurroman wants to merge 1 commit into
mainfrom
rm/test-setup-deploy-path
Open

test: fix broken deploy-test path in test-setup.sh#146
mazurroman wants to merge 1 commit into
mainfrom
rm/test-setup-deploy-path

Conversation

@mazurroman

Copy link
Copy Markdown
Member

Summary

$SCRIPT_DIR in test/test-setup.sh already resolves to the test/ directory (the script lives there), but the --deploy-test branch joined it with test/ again — so $SCRIPT_DIR/test/deploy-test-contract.sh resolved to <repo>/test/test/deploy-test-contract.sh, which doesn't exist.

The -x guard silently masked the bug: ./test/test-setup.sh --deploy-test (and make test-deploy, which delegates to it via the Makefile) always fell through to the "Test deployment script not found or not executable" branch and exited 0 without doing anything.

Drop the extra test/ segment so the script actually invokes test/deploy-test-contract.sh.

Test plan

  • ls test/deploy-test-contract.sh exists; ls test/test/deploy-test-contract.sh did not.
  • bash -n test/test-setup.sh — syntax OK.
  • Path now matches every other reference in test/run-tests.sh (which already uses ${SCRIPT_DIR}/deploy-test-contract.sh).

'$SCRIPT_DIR' is already the test/ directory (the script lives there),
but the --deploy-test branch joined it with 'test/' again, so
$SCRIPT_DIR/test/deploy-test-contract.sh resolved to
'<repo>/test/test/deploy-test-contract.sh' — which doesn't exist.

The '-x' guard silently masked the bug: './test/test-setup.sh
--deploy-test' (and 'make test-deploy', which calls into it) always
fell through to 'Test deployment script not found or not executable'
and exited 0 without doing anything.

Drop the extra 'test/' segment so the script actually invokes
test/deploy-test-contract.sh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant