mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-02-01 10:13:07 -05:00
Add stdout from bash processes to test reports
Its quite hard to debug what went wrong if a test fails so it would be very helpful to have a record somewhere of the stdout from bash. This patch appends it to the test report.
This commit is contained in:
@@ -48,7 +48,11 @@ Before(){
|
||||
}
|
||||
}
|
||||
|
||||
After(){
|
||||
After(){ scenario ->
|
||||
def output = bash?.output
|
||||
if (output) {
|
||||
scenario.write("\nOutput: \n${output}")
|
||||
}
|
||||
bash?.stop()
|
||||
cleanUp()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user