Skip to content

Commit

Permalink
Fixed installing extra test images (google#9681)
Browse files Browse the repository at this point in the history
Over at python-pillow, our CIFuzz job has [started
failing](https://github.com/python-pillow/Pillow/actions/runs/4147683686/jobs/7174854267#step:4:7800)
-
> depends/install_extra_test_images.sh: line 6:
./download-and-extract.sh: No such file or directory

This is because we recently merged
python-pillow/Pillow#6918, which changes
`depends/install_extra_test_images.sh` to call
`./download-and-extract.sh`, which exists inside
[`depends`](https://github.com/python-pillow/Pillow/tree/main/depends).
So when

https://github.com/google/oss-fuzz/blob/00b08f6592b90d438e113138c64cd4025fbb3bdf/projects/pillow/Dockerfile#L41
runs, it can't find `./download-and-extract.sh`, because it is running
from the base Pillow directory.

So this PR changes the command to run from inside `depends` instead.

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
  • Loading branch information
2 people authored and eamonnmcmanus committed Mar 15, 2023
1 parent 0ad948d commit 59d58bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/pillow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN ln -s /usr/local/bin/python3 /usr/local/bin/python \
&& bash $SRC/build_depends.sh

# install extra test images for a better starting corpus
RUN cd Pillow && depends/install_extra_test_images.sh
RUN cd Pillow/depends && ./install_extra_test_images.sh

COPY build.sh $SRC/

Expand Down

0 comments on commit 59d58bf

Please sign in to comment.