Skip to content

Commit 4ac1a80

Browse files
committed
cleaning up
1 parent 22f4ceb commit 4ac1a80

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

compatibility_matrix.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ run_tests() {
3030
(
3131
echo "Testing with Python ${py_ver} and Django ${dj_ver}"
3232
local individual_result_file="${result_dir}/${dj_ver}_${py_ver}.json"
33-
# Replace this with your actual Docker-based test command
3433
if docker build -f Dockerfile.test --build-arg PYTHON_VERSION="${py_ver}" --build-arg DJANGO_VERSION="${dj_ver}" -t django_appointment_test:"${py_ver}_${dj_ver}" . && \
3534
docker run --rm django_appointment_test:"${py_ver}_${dj_ver}"; then
3635
echo "{\"result\": \"PASS\"}" > "$individual_result_file"
@@ -132,17 +131,16 @@ post_cleanup() {
132131

133132
echo "Removing docker images..."
134133
# shellcheck disable=SC2155
135-
# local dangling_images=$(docker images -q --filter "dangling=true")
136-
# if [ -n "$dangling_images" ]; then
137-
# docker rmi "$dangling_images"
138-
# fi
134+
local dangling_images=$(docker images -q --filter "dangling=true")
135+
if [ -n "$dangling_images" ]; then
136+
docker rmi "$dangling_images"
137+
fi
139138

140139
echo "Cleanup complete."
141140
}
142141

143142
# Define directories and files
144143
result_dir="test_results"
145-
post_cleanup # Clean up any previous test results
146144
result_file="${result_dir}/results.json"
147145

148146
# Compatible Python versions for each Django version with prefixed keys

0 commit comments

Comments
 (0)