File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ run_tests() {
30
30
(
31
31
echo " Testing with Python ${py_ver} and Django ${dj_ver} "
32
32
local individual_result_file=" ${result_dir} /${dj_ver} _${py_ver} .json"
33
- # Replace this with your actual Docker-based test command
34
33
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} " . && \
35
34
docker run --rm django_appointment_test:" ${py_ver} _${dj_ver} " ; then
36
35
echo " {\" result\" : \" PASS\" }" > " $individual_result_file "
@@ -132,17 +131,16 @@ post_cleanup() {
132
131
133
132
echo " Removing docker images..."
134
133
# 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
139
138
140
139
echo " Cleanup complete."
141
140
}
142
141
143
142
# Define directories and files
144
143
result_dir=" test_results"
145
- post_cleanup # Clean up any previous test results
146
144
result_file=" ${result_dir} /results.json"
147
145
148
146
# Compatible Python versions for each Django version with prefixed keys
You can’t perform that action at this time.
0 commit comments