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

Fix aot docker test #3937

Merged
merged 1 commit into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions external/aot/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ set -e
echo "Testing AOT"
aot_failure_msg="AOT header validation failed"
java -Xjit:verbose -version >output 2>&1
fail_count=$(grep "$aot_failure_msg" output)
if [ -z "$fail_count" ]; then
echo "Test Passed!"
else
if grep -q "$aot_failure_msg" output; then
cat output
echo -e "\nError: $aot_failure_msg"
exit 1
else
echo "Test Passed!"
fi
set +e
1 change: 1 addition & 0 deletions external/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ if [ $command_type == "load" ]; then
if [[ "${JDK_IMPL}" == *"openj9"* ]]; then
docker_image_name="ibm-semeru-runtimes:open-${JDK_VERSION}-jdk"
fi
docker pull $docker_image_name
test_script_path="$test_root/external/$test/test.sh"
chmod a+x $test_script_path
mount_test_script="-v $test_script_path:/test.sh"
Expand Down