-
Notifications
You must be signed in to change notification settings - Fork 50
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
fix: show last error appropriately #202
Conversation
mint.sh
Outdated
fi | ||
## Show error.log when status is empty or not "FAIL". | ||
## This may happen when test run failed without providing logs. | ||
if [ "$err" -ne 0 -o -z "$tatus" -o "$status" != "FAIL" ]; then |
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.
s/"$tatus"/"$status"
also, shellcheck complains
^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
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.
Done
mint.sh
Outdated
@@ -117,8 +129,7 @@ function main() | |||
done | |||
fi | |||
|
|||
echo "Finished running all tests." | |||
echo "To get logs, run 'sudo docker cp ${CONTAINER_ID}:/mint/log /tmp/mint-logs'" | |||
echo "All tests ran successfully" |
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.
This statement should be printed only in case of successful run of tests, currently it is like this
Running with
SERVER_ENDPOINT: 127.0.0.1:9000
ACCESS_KEY: minio
SECRET_KEY: ***REDACTED***
ENABLE_HTTPS: 0
SERVER_REGION: us-east-1
MINT_DATA_DIR: /mint/data
MINT_MODE: core
To get logs, run 'sudo docker cp 80b4b3caa433:/mint/log /tmp/mint-logs'
Running minio-java tests ... FAILED in 0 seconds
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/RequestBody
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: okhttp3.RequestBody
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
All tests ran successfully
On test failure, show appropriate error message by showing JSON message or error.log
On test failure, show appropriate error message by showing JSON
message or error.log