adoroszlai opened a new pull request #1261: URL: https://github.com/apache/hadoop-ozone/pull/1261
## What changes were proposed in this pull request? 1. Add a helper script to run bash test scripts (`*.bats`). 2. Run `bats` part of CI. https://issues.apache.org/jira/browse/HDDS-4031 ## How was this patch tested? Created failing test at `hadoop-hdds/common/src/test/shell/failing.bats`: ``` @test "fails" { [[ "123" == "456" ]] } @test "err" { asdfs } ``` and tested: ``` $ hadoop-ozone/dev-support/checks/bats.sh ... $ echo $? 1 $ cat target/bats/summary.txt not ok 1 fails # (in test file hadoop-hdds/common/src/test/shell/failing.bats, line 24) # `@test "fails" {' failed not ok 2 err # (in test file hadoop-hdds/common/src/test/shell/failing.bats, line 29) # `asdfs' failed with status 127 # /var/folders/32/sr06nr7123s3bdfsmqsm4pqw0000gn/T/bats-run-70119/bats.70145.src: line 29: asdfs: command not found $ cat target/bats/failures 2 ``` Passing tests (currently only `gc_opts.bat`): ``` 1..3 ok 1 Setting Hadoop GC parameters: add GC params for server ok 2 Setting Hadoop GC parameters: disabled for client ok 3 Setting Hadoop GC parameters: disabled if GC params are customized ``` https://github.com/adoroszlai/hadoop-ozone/runs/913609741#step:4:4 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
