diff --git a/Dockerfile b/Dockerfile index 7046487..a9f359e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,11 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -# Download and unzip Godot v4.1.1 -RUN wget https://downloads.tuxfamily.org/godotengine/4.1.1/Godot_v4.1.1-stable_linux.x86_64.zip && \ - unzip Godot_v4.1.1-stable_linux.x86_64.zip && \ - mv Godot_v4.1.1-stable_linux.x86_64 /usr/bin/godot && \ - rm Godot_v4.1.1-stable_linux.x86_64.zip +# Download and unzip Godot v4.4.1 +RUN wget https://github.com/godotengine/godot/releases/download/4.4.1-stable/Godot_v4.4.1-stable_linux.x86_64.zip && \ + unzip Godot_v4.4.1-stable_linux.x86_64.zip && \ + mv Godot_v4.4.1-stable_linux.x86_64 /usr/bin/godot && \ + rm Godot_v4.4.1-stable_linux.x86_64.zip WORKDIR /opt/test-runner COPY . . diff --git a/bin/run.sh b/bin/run.sh index 0802dfe..38ffa15 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -29,6 +29,13 @@ results_file="${output_dir}/results.json" # Create the output directory if it doesn't exist mkdir -p "${output_dir}" +# Create Godot directories +export XDG_CONFIG_HOME=/tmp/config +export XDG_DATA_HOME=/tmp/local/share +export XDG_CACHE_HOME=/tmp/cache + +mkdir -p "$XDG_CONFIG_HOME" "$XDG_DATA_HOME" "$XDG_CACHE_HOME" + echo "${slug}: testing..." # Run the tests for the provided implementation file diff --git a/tests/example-type-hints/expected_results.json b/tests/example-type-hints/expected_results.json index 7d52dcb..e26932a 100644 --- a/tests/example-type-hints/expected_results.json +++ b/tests/example-type-hints/expected_results.json @@ -10,7 +10,7 @@ { "name": "test_return_string_incorrect", "status": "error", - "message": "SCRIPT ERROR: Trying to return value of type \"int\" from a function which the return type is \"String\".\n at: return_string (res://tests/example-type-hints/example_type_hints.gd:2)\n" + "message": "SCRIPT ERROR: Trying to return value of type \"int\" from a function whose return type is \"String\".\n at: return_string (res://tests/example-type-hints/example_type_hints.gd:2)\n" }, { "name": "test_accept_int_correct",