Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_tests.sh: allow passing of additional test arguments #3229

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

jrick
Copy link
Member

@jrick jrick commented Apr 3, 2024

In 39e2cc2 a TestMain was added that parsed all of the arguments passed to the dcrd.test executable, allowing any additional arguments not parsed by the test binary to be used by dcrd code. This change modifies the run_tests.sh script to allow passing of additional arguments as well, which allows doing:

./run_tests.sh -- --appdata=$(mktemp -d)

This allows the config tests to pass even when run under a sandboxed environment without a home directory, or where the home directory is read-only.

In 39e2cc2 a TestMain was added that parsed
all of the arguments passed to the dcrd.test executable, allowing any
additional arguments not parsed by the test binary to be used by dcrd code.
This change modifies the run_tests.sh script to allow passing of additional
arguments as well, which allows doing:

./run_tests.sh -- --appdata=$(mktemp -d)

This allows the config tests to pass even when run under a sandboxed
environment without a home directory, or where the home directory is
read-only.
@davecgh davecgh merged commit 08894d5 into decred:master Apr 3, 2024
2 checks passed
@davecgh davecgh added this to the 1.9.0 milestone Apr 3, 2024
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.

2 participants