]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-container-flake8: fix test 2156/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Mon, 7 Aug 2023 15:10:57 +0000 (17:10 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 7 Aug 2023 15:17:45 +0000 (17:17 +0200)
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 <gabrioux@ibm.com>
ceph-container-flake8/build/build

index ebfbf3058610e73d539bac4b9f11170351c457e6..ccc54bef7ff7aef4e880daaf2705e44c52e94383 100755 (executable)
@@ -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 $?