From: Guillaume Abrioux Date: Mon, 7 Aug 2023 15:10:57 +0000 (+0200) Subject: ceph-container-flake8: fix test X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2156%2Fhead;p=ceph-build.git ceph-container-flake8: fix test Looks like this job has never worked. The file should be bind-mounted in /code, not in / There's no need to pass arguments, the entrypoint automatically scan /code and run flake8 against any present files. Signed-off-by: Guillaume Abrioux --- diff --git a/ceph-container-flake8/build/build b/ceph-container-flake8/build/build index ebfbf305..ccc54bef 100755 --- a/ceph-container-flake8/build/build +++ b/ceph-container-flake8/build/build @@ -21,7 +21,7 @@ function check(){ while read -r filename; do pushd "$(dirname "$filename")" file=$(basename "$filename") - sudo docker run --rm -v "$workspace"/ceph-container/tox.ini:/tox.ini:z -v "$(pwd)"/"$file":/"$file":z eeacms/flake8 /"$file" + sudo docker run --rm -v "$workspace"/ceph-container/tox.ini:/tox.ini:z -v "$(pwd)"/"$file":/code/"$file":z eeacms/flake8 popd done return $?