-
Notifications
You must be signed in to change notification settings - Fork 977
use tmp dir for --data-path in BesuCommand tests #9350
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
This reverts commit 783426e. Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
app/src/test/java/org/hyperledger/besu/cli/CommandTestAbstract.java
Outdated
Show resolved
Hide resolved
app/src/test/java/org/hyperledger/besu/cli/CommandTestAbstract.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
app/src/test/java/org/hyperledger/besu/cli/CommandTestAbstract.java
Outdated
Show resolved
Hide resolved
| final List<String> argsList = new ArrayList<>(Arrays.asList(args)); | ||
|
|
||
| // If first arg starts with "-" or args is empty, it's likely main command | ||
| boolean isMainCommand = args.length == 0 || args[0].startsWith("-"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PublicKeySubCommandTest needs more work if we don't have this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the simplicity of applying to all subcommands here is worth making a special case out of PublicKeySubCommandTest
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane [email protected]
PR description
Modified abstract test class to add --data-path if not already present
Fixed Issue(s)
Fixes #9313
Thanks for sending a pull request! Have you done the following?
doc-change-requiredlabel to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests